public void Contains_With_InvalidFilter_Expected_ReturnsInstance() { var item = new DebugItem(); item.Add(new DebugItemResult { GroupName = "Hello", Value = "world" }); var result = item.Contains("the"); Assert.IsFalse(result); }
public void Contains_With_EmptyFilter_Expected_ReturnsInstance() { var item = new DebugItem(); item.Add(new DebugItemResult { GroupName = "Hello", Value = "world" }); var result = item.Contains(string.Empty); Assert.IsTrue(result); }
public void Contains_With_Filter_Expected_IsCaseInsensitive() { var item = new DebugItem(); item.Add(new DebugItemResult { GroupName = "Hello", Value = "world" }); var result = item.Contains("hel"); Assert.IsTrue(result); }