public void TestSkipToNextLine() { var m = new Mock <ITokenizer <TokenType> >(); m.Setup(t => t.SkipToNextLine()); var l = new CLexer(m.Object); l.SkipToNextLine(); m.Verify(t => t.SkipToNextLine()); }
public void CLexer_SkipToNextLine_Lf() { Lex(" sdfsfds\nHello"); lex.SkipToNextLine(); AssertToken(CTokenType.Id, "Hello"); }