(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func Test_Mock_On(t *testing.T) { |
| 179 | t.Parallel() |
| 180 | |
| 181 | // make a test impl object |
| 182 | var mockedService = new(TestExampleImplementation) |
| 183 | |
| 184 | c := mockedService.On("TheExampleMethod") |
| 185 | assert.Equal(t, []*Call{c}, mockedService.ExpectedCalls) |
| 186 | assert.Equal(t, "TheExampleMethod", c.Method) |
| 187 | } |
| 188 | |
| 189 | func Test_Mock_Chained_On(t *testing.T) { |
| 190 | t.Parallel() |