public void IsValidCompletionPoint_WithinName_ReturnsFalse() { // 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 = DirectiveAttributeTransitionCompletionItemProvider.IsValidCompletionPoint(location, prefixLocation, attributeNameLocation); // Assert Assert.False(result); }
public void IsValidCompletionPoint_NullPrefix_ReturnsFalse() { // Arrange // <svg xml:base="abc"xm| ></svg> var location = new SourceSpan(21, 0); TextSpan?prefixLocation = null; var attributeNameLocation = new TextSpan(4, 5); // Act var result = DirectiveAttributeTransitionCompletionItemProvider.IsValidCompletionPoint(location, prefixLocation, attributeNameLocation); // Assert Assert.False(result); }