File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -997,10 +997,7 @@ _InOrderVerification get verifyInOrder {
997997 throw StateError (_verifyCalls.join ());
998998 }
999999 _verificationInProgress = true ;
1000- return < T > (List <T > responses) {
1001- if (responses.length != _verifyCalls.length) {
1002- fail ('Used on a non-mockito object' );
1003- }
1000+ return < T > (List <T > _) {
10041001 _verificationInProgress = false ;
10051002 var verificationResults = < VerificationResult > [];
10061003 var time = DateTime .fromMillisecondsSinceEpoch (0 );
Original file line number Diff line number Diff line change @@ -206,12 +206,6 @@ void main() {
206206 '2 verify calls have been stored.' )));
207207 }
208208 });
209-
210- test ('should fail when called with non-mock-call parameter' , () {
211- expectFail ('Used on a non-mockito object' , () {
212- verifyInOrder (['a string is not a mock call' ]);
213- });
214- });
215209 });
216210
217211 group ('verify should fail when no matching call is found' , () {
@@ -463,12 +457,6 @@ void main() {
463457 });
464458 });
465459
466- test ('should fail when given non-mock-call parameters' , () {
467- expectFail ('Used on a non-mockito object' , () {
468- verifyInOrder (['a string is not a mock call' ]);
469- });
470- });
471-
472460 test ('verify been used as an argument fails' , () {
473461 mock.methodWithoutArgs ();
474462 mock.getter;
You can’t perform that action at this time.
0 commit comments