public void when_data_does_not_contain_query_icontains_should_not_match() { var data = "Foo Bar Baz"; var query = "Buzz"; var record = WinINetEvent.CreateRecord(String.Empty, data, 0u); var predicate = AnsiString.IContains(WinINetEvent.Verb, query); Assert.IsFalse(predicate.Test(record)); }
public void when_data_contains_query_but_differs_in_case_icontains_should_match() { var data = "Foo Bar Baz"; var query = "BAR"; var record = WinINetEvent.CreateRecord(String.Empty, data, 0u); var predicate = AnsiString.IContains(WinINetEvent.Verb, query); Assert.IsTrue(predicate.Test(record)); }