@@ -1466,34 +1466,34 @@ func Test_Mock_AssertExpectationsFunctionalOptionsType(t *testing.T) {
1466
1466
1467
1467
}
1468
1468
1469
- func Test_Mock_AssertExpectationsFunctionalOptionsType_Indirectly (t * testing.T ) {
1469
+ func Test_Mock_AssertExpectationsFunctionalOptionsType_Empty (t * testing.T ) {
1470
1470
1471
1471
var mockedService = new (TestExampleImplementation )
1472
1472
1473
- mockedService .On ("TheExampleMethodFunctionalOptions" , "test" , FunctionalOptions (OpNum ( 1 ), OpStr ( "foo" ) )).Return (nil ).Once ()
1473
+ mockedService .On ("TheExampleMethodFunctionalOptions" , "test" , FunctionalOptions ()).Return (nil ).Once ()
1474
1474
1475
1475
tt := new (testing.T )
1476
1476
assert .False (t , mockedService .AssertExpectations (tt ))
1477
1477
1478
1478
// make the call now
1479
- TheExampleMethodFunctionalOptionsIndirect ( mockedService )
1479
+ mockedService . TheExampleMethodFunctionalOptions ( "test" )
1480
1480
1481
1481
// now assert expectations
1482
1482
assert .True (t , mockedService .AssertExpectations (tt ))
1483
1483
1484
1484
}
1485
1485
1486
- func Test_Mock_AssertExpectationsFunctionalOptionsType_Empty (t * testing.T ) {
1486
+ func Test_Mock_AssertExpectationsFunctionalOptionsType_Indirectly (t * testing.T ) {
1487
1487
1488
1488
var mockedService = new (TestExampleImplementation )
1489
1489
1490
- mockedService .On ("TheExampleMethodFunctionalOptions" , "test" , FunctionalOptions ()).Return (nil ).Once ()
1490
+ mockedService .On ("TheExampleMethodFunctionalOptions" , "test" , FunctionalOptions (OpNum ( 1 ), OpStr ( "foo" ) )).Return (nil ).Once ()
1491
1491
1492
1492
tt := new (testing.T )
1493
1493
assert .False (t , mockedService .AssertExpectations (tt ))
1494
1494
1495
1495
// make the call now
1496
- mockedService . TheExampleMethodFunctionalOptions ( "test" )
1496
+ TheExampleMethodFunctionalOptionsIndirect ( mockedService )
1497
1497
1498
1498
// now assert expectations
1499
1499
assert .True (t , mockedService .AssertExpectations (tt ))
0 commit comments