public void MatchOnCharByChar() { var l = new LineBuffer(); l.Add("b"); l.Add("a"); Assert.IsFalse(l.Match("bash")); l.Add("s"); l.Add("h"); Assert.IsTrue(l.Match("bash")); }
public void MissMatchOnNewLine() { var l = new LineBuffer(); l.Add("bash" + CrLf + "dude"); Assert.IsFalse(l.Match("bash")); }
public void SimpleMatch() { var l = new LineBuffer(); l.Add("bash"); Assert.IsTrue(l.Match("bash")); }
public void SimpleMatchWithExtra() { var l = new LineBuffer(); l.Add("bogusbashdude"); Assert.IsTrue(l.Match("bash")); }
public void TestEmptyLineWidth() { var l = new LineBuffer(null); Assert.IsFalse(l.Match("bogus")); }