Beispiel #1
0
 public void Any_Boolean_should_work()
 {
     ForTest.Scenarios(true, false)
     .TestEach(scenario =>
     {
         _mock.ResetCalls();
         _test.WithBoolean(scenario);
         _mock.VerifyOneCallTo(x => x.WithBoolean(Any.Boolean));
     });
 }
Beispiel #2
0
 public void Any_Boolean_should_work()
 {
     ForTest.Scenarios(true, false)
     .TestEach(scenario =>
     {
         _mock.Invocations.Clear();
         _test.WithBoolean(scenario);
         _mock.Verify(x => x.WithBoolean(Any.Boolean), Times.Once);
     });
 }