public void when_values_differ_other_than_case_iequals_should_not_match() { var data = "Test"; var query = "Foobar"; var record = WinINetEvent.CreateRecord(String.Empty, data, 0u); var predicate = AnsiString.Is(WinINetEvent.Verb, query); Assert.IsFalse(predicate.Test(record)); }
public void when_values_are_same_is_should_match() { var data = "Test"; var query = data; var record = WinINetEvent.CreateRecord(String.Empty, data, 0u); var predicate = AnsiString.Is(WinINetEvent.Verb, query); Assert.IsTrue(predicate.Test(record)); }