Ejemplo n.º 1
0
 public void Any_InstanceOf_should_work()
 {
     ForTest.Scenarios
     (
         new ScenarioTester <string>(new[] { "a", "b" }),
         new ScenarioTester <string>(new[] { "c", "d" })
     )
     .TestEach(scenario =>
     {
         _mock.ResetCalls();
         _test.WithScenarioTester(scenario);
         _mock.VerifyOneCallTo(x => x.WithScenarioTester(Any.InstanceOf <ScenarioTester <string> >()));
     });
 }
Ejemplo n.º 2
0
 public void Any_InstanceOf_should_work()
 {
     ForTest.Scenarios
     (
         new ScenarioTester <string>(new[] { "a", "b" }),
         new ScenarioTester <string>(new[] { "c", "d" })
     )
     .TestEach(scenario =>
     {
         _mock.Invocations.Clear();
         _test.WithScenarioTester(scenario);
         _mock.Verify(x => x.WithScenarioTester(Any.InstanceOf <ScenarioTester <string> >()));
     });
 }