Ejemplo n.º 1
0
        public void ParseTest(string input, Type expectedStatementType)
        {
            var target = new ParticipantStatementParser();
            var actual = target.Parse(input).First();

            Assert.IsInstanceOf(expectedStatementType, actual);
        }
Ejemplo n.º 2
0
        public void EnsureTokensExtended(string input, string[] tokens)
        {
            ParticipantStatementParser target = new ParticipantStatementParser();
            var actual = target.Parse(input);
            var tokenValues = actual.First().Tokens().Select(token => token.Value);
            var expected = new[] { ParticipantStatementParser.Keyword }.Concat(tokens);

            CollectionAssert.AreEquivalent(expected, tokenValues);
        }