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