2022-04-26 18:21:17 +03:00
|
|
|
|
using System;
|
|
|
|
|
using AutoFixture;
|
|
|
|
|
using AutoFixture.Xunit2;
|
2021-01-25 23:27:38 +03:00
|
|
|
|
using Xunit;
|
|
|
|
|
using Xunit.Sdk;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Test.Common.AutoFixture.Attributes
|
|
|
|
|
{
|
|
|
|
|
public class InlineCustomAutoDataAttribute : CompositeDataAttribute
|
|
|
|
|
{
|
|
|
|
|
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)
|
|
|
|
|
})
|
|
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
}
|