public void TestIsInstance()
        {
            Assert.False(WhenClauseSyntaxWrapper.IsInstance(null));
            Assert.False(WhenClauseSyntaxWrapper.IsInstance(SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression)));

            var syntaxNode = this.CreateWhenClause();

            Assert.True(WhenClauseSyntaxWrapper.IsInstance(syntaxNode));
        }
Esempio n. 2
0
 public void TestIsInstance()
 {
     Assert.False(WhenClauseSyntaxWrapper.IsInstance(null));
     Assert.False(WhenClauseSyntaxWrapper.IsInstance(SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression)));
 }