Пример #1
0
        public void FailGracefullyOnSequence()
        {
            var sequence = Parse.Char('a').XDelimitedBy(Parse.Char(','));

            AssertParser.FailsWith(sequence, "a,a,b", result =>
            {
                StringAssert.Contains("unexpected 'b'", result.Message);
                CollectionAssert.Contains(result.Expectations, "a");
            });
        }