Exemplo n.º 1
0
 public void Any_KeyValuePair_should_work()
 {
     ForTest.Scenarios
     (
         new KeyValuePair <string, string>("key", "value")
     )
     .TestEach(scenario =>
     {
         _mock.ResetCalls();
         _test.WithKeyValuePair(scenario);
         _mock.VerifyOneCallTo(x => x.WithKeyValuePair(Any.KeyValuePair <string, string>()));
     });
 }
Exemplo n.º 2
0
 public void Any_KeyValuePair_should_work()
 {
     ForTest.Scenarios
     (
         new KeyValuePair <string, string>("key", "value")
     )
     .TestEach(scenario =>
     {
         _mock.Invocations.Clear();
         _test.WithKeyValuePair(scenario);
         _mock.Verify(x => x.WithKeyValuePair(Any.KeyValuePair <string, string>()), Times.Once);
     });
 }