예제 #1
0
        public void IsApplicableTriggerContext_Deletion_ReturnsFalse()
        {
            // Arrange
            var completionContext = new VSInternalCompletionContext()
            {
                InvokeKind = VSInternalCompletionInvokeKind.Deletion
            };

            // Act
            var result = RazorCompletionEndpoint.IsApplicableTriggerContext(completionContext);

            // Assert
            Assert.False(result);
        }
예제 #2
0
        public void IsApplicableTriggerContext_Typing_ReturnsTrue()
        {
            // Arrange
            var completionContext = new VSInternalCompletionContext()
            {
                InvokeKind = VSInternalCompletionInvokeKind.Typing
            };

            // Act
            var result = RazorCompletionEndpoint.IsApplicableTriggerContext(completionContext);

            // Assert
            Assert.True(result);
        }