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