Remove RepeatAttribute class
DELETE
WalletWasabi.Tests/Helpers/RepeatAttribute.cs
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using Xunit.Sdk;
-
-namespace WalletWasabi.Tests.Helpers
-{
- public sealed class RepeatAttribute : DataAttribute
- {
- private readonly int _count;
-
- public RepeatAttribute(int count)
- {
- if (count < 1)
- {
- throw new ArgumentOutOfRangeException(
- paramName: nameof(count),
- message: "Repeat count must be greater than 0.");
- }
- _count = count;
- }
-
- public override IEnumerable<object[]> GetData(MethodInfo testMethod)
- => Enumerable.Range(1, _count).Select(i => new object[] { i });
- }
-}
\ No newline at end of file

MODIFY
WalletWasabi.Tests/UnitTests/AllFeeEstimateTests.cs
WalletWasabi.Tests/UnitTests/AllFeeEstimateTests.cs
@@ -235,9 +235,10 @@ namespace WalletWasabi.Tests.UnitTests
Assert.True(allFee.Estimations[36] > 1);
}
- [Theory]
- [Repeat(1_000)]
- public async Task ExhaustiveEstimationsAsync(int dummy)
+ [Fact]
+ public async Task ExhaustiveEstimationsAsync()
+ {
+ foreach (var i in Enumerable.Range(0, 1000))
{
var mempoolInfo = MempoolInfoGenerator.GenerateMempoolInfo();
var rpc = CreateAndConfigureRpcClient(
@@ -254,6 +255,7 @@ namespace WalletWasabi.Tests.UnitTests
Assert.Equal(estimations.Values, estimations.Values.OrderByDescending(x => x));
Assert.All(estimations, (e) => Assert.True(e.Value >= mempoolInfo.MemPoolMinFee * 100_000));
}
+ }
private static MockRpcClient CreateAndConfigureRpcClient(Func<int, FeeRate> estimator, bool isSynchronized = true, bool hasPeersInfo = false, double mempoolMinFee = 0.00001000)
=> new MockRpcClient()

Remove RepeatAttribute class