public void AttributesContainsCorrectAttributeTypesWhenConstructorWithExplicitAutoDataAttribute()
 {
     // Fixture setup
     var autoDataAttribute = new AutoDataAttribute();
     var sut = new InlineAutoDataAttribute(autoDataAttribute);
     // Exercise system
     var result = sut.Attributes;
     // Verify outcome
     var expected = new[] { typeof(InlineDataAttribute), autoDataAttribute.GetType() };
     Assert.True(result.Select(d => d.GetType()).SequenceEqual(expected));
     // Teardown
 }
Beispiel #2
0
        public void AttributesContainsCorrectAttributeTypesWhenConstructorWithExplicitAutoDataAttribute()
        {
            // Arrange
            var autoDataAttribute = new AutoDataAttribute();
            var sut = new InlineAutoDataAttribute(autoDataAttribute);
            // Act
            var result = sut.Attributes;
            // Assert
            var expected = new[] { typeof(InlineDataAttribute), autoDataAttribute.GetType() };

            Assert.True(result.Select(d => d.GetType()).SequenceEqual(expected));
        }
Beispiel #3
0
        public void AttributesContainsCorrectAttributeTypesWhenConstructorWithExplicitAutoDataAttribute()
        {
            // Fixture setup
            var autoDataAttribute = new AutoDataAttribute();
            var sut = new InlineAutoDataAttribute(autoDataAttribute);
            // Exercise system
            var result = sut.Attributes;
            // Verify outcome
            var expected = new[] { typeof(InlineDataAttribute), autoDataAttribute.GetType() };

            Assert.True(result.Select(d => d.GetType()).SequenceEqual(expected));
            // Teardown
        }