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