public void IsDirectiveCompletableToken_ReturnsFalseForInvalidCSharpTokens()
        {
            // Arrange
            var csharpToken = SyntaxFactory.Token(SyntaxKind.Tilde, "~");

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.False(result);
        }
        public void IsDirectiveCompletableToken_ReturnsTrueForCSharpMarkerTokens()
        {
            // Arrange
            var csharpToken = SyntaxFactory.Token(SyntaxKind.Unknown, string.Empty);

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.True(result);
        }
        public void IsDirectiveCompletableToken_ReturnsFalseForNonCSharpTokens()
        {
            // Arrange
            var token = SyntaxFactory.Token(SyntaxKind.HtmlTextLiteral, string.Empty);

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(token);

            // Assert
            Assert.False(result);
        }
        public void IsDirectiveCompletableToken_ReturnsTrueForCSharpIdentifiers()
        {
            // Arrange
            var csharpToken = SyntaxFactory.Token(SyntaxKind.Identifier, "model");

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.True(result);
        }
        public void IsDirectiveCompletableToken_ReturnsFalseForInvalidCSharpTokens()
        {
            // Arrange
            var csharpToken = new CSharpToken("~", CSharpTokenType.Tilde);

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.False(result);
        }
        public void IsDirectiveCompletableToken_ReturnsFalseForNonCSharpTokens()
        {
            // Arrange
            var token = Mock.Of <IToken>();

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(token);

            // Assert
            Assert.False(result);
        }
        public void IsDirectiveCompletableToken_ReturnsTrueForCSharpMarkerTokens()
        {
            // Arrange
            var csharpToken = new CSharpToken(string.Empty, CSharpTokenType.Unknown);

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.True(result);
        }
        public void IsDirectiveCompletableToken_ReturnsTrueForCSharpIdentifiers()
        {
            // Arrange
            var csharpToken = new CSharpToken("model", CSharpTokenType.Identifier);

            // Act
            var result = DefaultRazorCompletionFactsService.IsDirectiveCompletableToken(csharpToken);

            // Assert
            Assert.True(result);
        }