public void TestIsInstance() { Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(null)); Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression))); var syntaxNode = this.CreateCasePatternSwitchLabel(); Assert.True(CasePatternSwitchLabelSyntaxWrapper.IsInstance(syntaxNode)); }
public void TestIsInstance() { Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(null)); Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression))); }