예제 #1
0
 public void Any_Tuple_should_work()
 {
     ForTest.Scenarios
     (
         Tuple.Create("A", 1),
         Tuple.Create("B", 2)
     )
     .TestEach(scenario =>
     {
         _mock.ResetCalls();
         _test.WithTuple(scenario);
         _mock.VerifyOneCallTo(x => x.WithTuple(Any.Tuple <string, int>()));
     });
 }
예제 #2
0
 public void Any_Tuple_should_work()
 {
     ForTest.Scenarios
     (
         Tuple.Create("A", 1),
         Tuple.Create("B", 2)
     )
     .TestEach(scenario =>
     {
         _mock.Invocations.Clear();
         _test.WithTuple(scenario);
         _mock.Verify(x => x.WithTuple(Any.Tuple <string, int>()), Times.Once);
     });
 }