Skip to content

Commit

Permalink
Fix broken test (comparing SyntaxNode identity to a wrapper)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Jun 10, 2017
1 parent c31beae commit c0deeb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void TestProperties()
Assert.Same(syntaxNode, isPatternExpressionSyntax.SyntaxNode);
Assert.Same(syntaxNode.Expression, isPatternExpressionSyntax.Expression);
Assert.True(syntaxNode.IsKeyword.IsEquivalentTo(isPatternExpressionSyntax.IsKeyword));
Assert.Same(syntaxNode.Pattern, isPatternExpressionSyntax.Pattern);
Assert.Same(syntaxNode.Pattern, isPatternExpressionSyntax.Pattern.SyntaxNode);

var newExpression = SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression, SyntaxFactory.Token(default(SyntaxTriviaList), SyntaxKind.NumericLiteralToken, "0", "0", default(SyntaxTriviaList)));
var modifiedExpression = isPatternExpressionSyntax.WithExpression(newExpression);
Expand Down

0 comments on commit c0deeb7

Please sign in to comment.