(t *testing.T)
| 220 | } |
| 221 | |
| 222 | func Test_Mock_On_WithArgs(t *testing.T) { |
| 223 | t.Parallel() |
| 224 | |
| 225 | // make a test impl object |
| 226 | var mockedService = new(TestExampleImplementation) |
| 227 | |
| 228 | c := mockedService.On("TheExampleMethod", 1, 2, 3, 4) |
| 229 | |
| 230 | assert.Equal(t, []*Call{c}, mockedService.ExpectedCalls) |
| 231 | assert.Equal(t, "TheExampleMethod", c.Method) |
| 232 | assert.Equal(t, Arguments{1, 2, 3, 4}, c.Arguments) |
| 233 | } |
| 234 | |
| 235 | func Test_Mock_On_WithFuncArg(t *testing.T) { |
| 236 | t.Parallel() |