public void GivenValidParameters_WhenConvertIsInvoked_ThenAppropriateCodeIsInvokedAndDataIsReturned()
        {
            // Arrange
            var item = fixture.Create <object[]>();

            // Act
            var data = converter.Convert(testMethod, item, memberName, memberType);

            // Assert
            data.Should().NotBeNull();
            dataAttributeProvider.VerifyAll();
            dataAttribute.VerifyAll();
        }
Exemplo n.º 2
0
        protected override object[] ConvertDataItem(MethodInfo testMethod, object item)
        {
            var fixture = this.ShareFixture ? this.Fixture : this.CustomizeFixture(new Fixture());

            var converter = new MemberAutoDataItemConverter(fixture, this.CreateProvider());

            return(converter.Convert(testMethod, item, this.MemberName, this.MemberType));
        }