public void IntersectsWithAttributeNameOrPrefix_OutsideOfNameAndPrefix_ReturnsFalse() { // Arrange // <p class=|""></p> var location = new SourceSpan(9, 0); var prefixLocation = new TextSpan(2, 1); var attributeNameLocation = new TextSpan(3, 5); // Act var result = DirectiveAttributeCompletionItemProviderBase.IntersectsWithAttributeNameOrPrefix(location, prefixLocation, attributeNameLocation); // Assert Assert.False(result); }
public void IntersectsWithAttributeNameOrPrefix_WithinName_ReturnsTrue() { // Arrange // <p cl|ass=""></p> var location = new SourceSpan(5, 0); var prefixLocation = new TextSpan(2, 1); var attributeNameLocation = new TextSpan(3, 5); // Act var result = DirectiveAttributeCompletionItemProviderBase.IntersectsWithAttributeNameOrPrefix(location, prefixLocation, attributeNameLocation); // Assert Assert.True(result); }