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

ItDiesOnInconsistentWhitespace() private method

private ItDiesOnInconsistentWhitespace ( string code ) : void
code string
return void
        public void ItDiesOnInconsistentWhitespace(string code)
        {
            var lexer = new Lexer(code.ToStream());
            Assert.Catch<InconsistentWhitespaceException>(() =>lexer.Lex().ToArray());
        }