2022-06-30 01:46:41 +02:00
|
|
|
|
using AutoFixture;
|
2021-12-16 15:35:09 +01:00
|
|
|
|
using AutoFixture.Xunit2;
|
2020-11-23 15:48:05 +01:00
|
|
|
|
using Xunit;
|
|
|
|
|
using Xunit.Sdk;
|
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
namespace Bit.Test.Common.AutoFixture.Attributes
|
2020-11-23 15:48:05 +01:00
|
|
|
|
{
|
2022-08-29 21:53:48 +02:00
|
|
|
|
public class InlineCustomAutoDataAttribute : CompositeDataAttribute
|
|
|
|
|
{
|
|
|
|
|
public InlineCustomAutoDataAttribute(Type[] iCustomizationTypes, params object[] values) : base(new DataAttribute[] {
|
|
|
|
|
new InlineDataAttribute(values),
|
|
|
|
|
new CustomAutoDataAttribute(iCustomizationTypes)
|
|
|
|
|
})
|
|
|
|
|
{ }
|
2020-11-23 15:48:05 +01:00
|
|
|
|
|
2022-08-29 21:53:48 +02:00
|
|
|
|
public InlineCustomAutoDataAttribute(ICustomization[] customizations, params object[] values) : base(new DataAttribute[] {
|
|
|
|
|
new InlineDataAttribute(values),
|
|
|
|
|
new CustomAutoDataAttribute(customizations)
|
|
|
|
|
})
|
|
|
|
|
{ }
|
|
|
|
|
}
|
2020-11-23 15:48:05 +01:00
|
|
|
|
}
|