Exemple #1
0
        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));
        }
Exemple #2
0
 public void TestIsInstance()
 {
     Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(null));
     Assert.False(CasePatternSwitchLabelSyntaxWrapper.IsInstance(SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression)));
 }