Example #1
0
 private static void VerifyError(SyntaxToken token, ErrorCode expected)
 {
     var errors = token.Errors();
     Assert.Equal(1, errors.Length);
     Assert.Equal((int)expected, errors[0].Code);
 }
Example #2
0
 private static void VerifyNoErrors(SyntaxToken token)
 {
     var errors = token.Errors();
     Assert.Equal(0, errors.Length);
 }