示例#1
0
    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);
    }
示例#2
0
        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);
        }