Ejemplo n.º 1
0
        public void passing_left_and_failing_right_side_fails()
        {
            var subject = new Sequence(__this__, __wally__);
            var result = subject.TryMatch(scanner);

            Assert.That(result.Success, Is.False);
        }
Ejemplo n.º 2
0
        public void passing_left_and_passing_right_side_passes_and_captures_both()
        {
            var subject = new Sequence(__this__, __is_my__);
            var result = subject.TryMatch(scanner);

            Assert.That(result.Success, Is.True);
            Assert.That(result.Value, Is.EqualTo("this is my"));
        }