Ancestry.Daisy.Tests.Daisy.Unit.Language.LexerTests.ItFigouresOutGroupStartOrEnd C# (CSharp) Method

ItFigouresOutGroupStartOrEnd() private method

private ItFigouresOutGroupStartOrEnd ( int spacesBefore, string line, IEnumerable expected ) : void
spacesBefore int
line string
expected IEnumerable
return void
        public void ItFigouresOutGroupStartOrEnd(int spacesBefore,string line, IEnumerable<Token> expected)
        {
            var lexer = new Lexer(line.ToStream());
            lexer.InterpretLine(string.Empty.PadRight(spacesBefore));
            var tokens = lexer.InterpretLine(line).ToArray();
            AssertTokenStreamEquals(expected.ToArray(), tokens);
        }