Exemplo n.º 1
0
        public void passing_left_and_failing_right_side_fails()
        {
            var subject = new Intersection(__this__, __wally__);

            var result = subject.TryMatch(scanner);

            Assert.That(result.Success, Is.False);
        }
Exemplo n.º 2
0
        public void right_and_then_left_passes_using_left_then_right()
        {
            var subject = new Intersection(__is__, __this__);

            var result = subject.TryMatch(scanner);

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