using System.Reflection; using Xunit.Sdk; namespace ClawdDotNet.Core.Tests.Infrastructure; /// /// Runs a theory test several times. /// /// Race conditions occur sporadically — a single run says little. /// The test parameter is the run index and is usually ignored. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] public sealed class RepeatAttribute(int count) : DataAttribute { public override IEnumerable GetData(MethodInfo testMethod) => Enumerable.Range(1, count).Select(i => new object[] { i }); }