public void IndexOf_ReturnsExpectedResult( IEnumerable <TagHelperAttribute> initialAttributes, TagHelperAttribute attributeToLookup, int expected) { // Arrange var attributes = new TagHelperAttributeList(initialAttributes); // Act var index = attributes.IndexOf(attributeToLookup); // Assert Assert.Equal(expected, index); }
public void IndexOf_ReturnsExpectedResult( IEnumerable<TagHelperAttribute> initialAttributes, TagHelperAttribute attributeToLookup, int expected) { // Arrange var attributes = new TagHelperAttributeList(initialAttributes); // Act var index = attributes.IndexOf(attributeToLookup); // Assert Assert.Equal(expected, index); }