Beispiel #1
0
        public void OriginalExpression()
        {
            var expr = SyntaxFactory.ParseExpression("original");

            expr.Errors().Verify();
            Assert.Equal(SyntaxKind.IdentifierName, expr.Kind());
            Assert.Equal(SyntaxKind.OriginalKeyword, ((IdentifierNameSyntax)expr).Identifier.ContextualKind());
            var opKind = SyntaxFacts.GetInstanceExpression(SyntaxKind.OriginalKeyword);

            Assert.Equal(SyntaxKind.None, opKind);
        }