Ejemplo n.º 1
0
 public void Any_List_should_work()
 {
     ForTest.Scenarios
     (
         new List <string> {
         "a", "b"
     },
         new List <string> {
         "c", "d"
     }
     )
     .TestEach(scenario =>
     {
         _mock.ResetCalls();
         _test.WithList(scenario);
         _mock.VerifyOneCallTo(x => x.WithList(Any.List <string>()));
     });
 }
Ejemplo n.º 2
0
 public void Any_List_should_work()
 {
     ForTest.Scenarios
     (
         new List <string> {
         "a", "b"
     },
         new List <string> {
         "c", "d"
     }
     )
     .TestEach(scenario =>
     {
         _mock.Invocations.Clear();
         _test.WithList(scenario);
         _mock.Verify(x => x.WithList(Any.List <string>()), Times.Once);
     });
 }