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> >())); }); }
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> >())); }); }