Example #1
0
        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"));
        }
Example #2
0
        public void MissMatchOnNewLine()
        {
            var l = new LineBuffer();

            l.Add("bash" + CrLf + "dude");
            Assert.IsFalse(l.Match("bash"));
        }
Example #3
0
        public void SimpleMatch()
        {
            var l = new LineBuffer();

            l.Add("bash");
            Assert.IsTrue(l.Match("bash"));
        }
Example #4
0
        public void SimpleMatchWithExtra()
        {
            var l = new LineBuffer();

            l.Add("bogusbashdude");
            Assert.IsTrue(l.Match("bash"));
        }
Example #5
0
        public void TestEmptyLineWidth()
        {
            var l = new LineBuffer(null);

            Assert.IsFalse(l.Match("bogus"));
        }