예제 #1
0
        public void GetMappingBehavior_Razor()
        {
            // Arrange
            var documentPath     = "/path/to/document.razor";
            var documentSnapshot = TestDocumentSnapshot.Create(documentPath);

            // Act
            var result = RazorBreakpointSpanEndpoint.GetMappingBehavior(documentSnapshot);

            // Assert
            Assert.Equal(MappingBehavior.Strict, result);
        }
예제 #2
0
        public void GetMappingBehavior_CSHTML()
        {
            // Arrange
            var documentPath     = "/path/to/document.cshtml";
            var documentSnapshot = TestDocumentSnapshot.Create(documentPath);

            // Act
            var result = RazorBreakpointSpanEndpoint.GetMappingBehavior(documentSnapshot);

            // Assert
            Assert.Equal(MappingBehavior.Inclusive, result);
        }