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