public void IndexOfName_ReturnsExpectedValue( IEnumerable <TagHelperAttribute> initialAttributes, string nameToLookup, int expectedIndex) { // Arrange var attributes = new TagHelperAttributeList(initialAttributes); // Act var index = attributes.IndexOfName(nameToLookup); // Assert Assert.Equal(expectedIndex, index); }
public void IndexOfName_ReturnsExpectedValue( IEnumerable<TagHelperAttribute> initialAttributes, string nameToLookup, int expectedIndex) { // Arrange var attributes = new TagHelperAttributeList(initialAttributes); // Act var index = attributes.IndexOfName(nameToLookup); // Assert Assert.Equal(expectedIndex, index); }