Contains() public method

public Contains ( string filterText ) : bool
filterText string
return bool
Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }