public void when_data_does_not_contain_query_icontains_should_not_match() { var data = "Foo Bar Baz"; var query = "Buzz"; var record = PowerShellEvent.CreateRecord(data, String.Empty, String.Empty); var predicate = UnicodeString.IContains(PowerShellEvent.UserData, 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 = PowerShellEvent.CreateRecord(data, String.Empty, String.Empty); var predicate = UnicodeString.IContains(PowerShellEvent.UserData, query); Assert.IsTrue(predicate.Test(record)); }