2020-11-23 15:48:05 +01:00
|
|
|
using System;
|
|
|
|
using Xunit;
|
|
|
|
using Xunit.Sdk;
|
|
|
|
using AutoFixture.Xunit2;
|
|
|
|
using AutoFixture;
|
|
|
|
|
2021-10-29 21:05:45 +02:00
|
|
|
namespace Bit.Test.Common.AutoFixture.Attributes
|
2020-11-23 15:48:05 +01:00
|
|
|
{
|
2021-10-29 21:05:45 +02:00
|
|
|
public class InlineCustomAutoDataAttribute : CompositeDataAttribute
|
2020-11-23 15:48:05 +01:00
|
|
|
{
|
|
|
|
public InlineCustomAutoDataAttribute(Type[] iCustomizationTypes, params object[] values) : base(new DataAttribute[] {
|
|
|
|
new InlineDataAttribute(values),
|
|
|
|
new CustomAutoDataAttribute(iCustomizationTypes)
|
|
|
|
})
|
|
|
|
{ }
|
|
|
|
|
|
|
|
public InlineCustomAutoDataAttribute(ICustomization[] customizations, params object[] values) : base(new DataAttribute[] {
|
|
|
|
new InlineDataAttribute(values),
|
|
|
|
new CustomAutoDataAttribute(customizations)
|
|
|
|
})
|
|
|
|
{ }
|
|
|
|
}
|
|
|
|
}
|