MethodNameSuffix added to DataDrivenBenchmarksBase to simplify usage

This commit is contained in:
mlemanczyk committed 2023-10-22 01:27:58 +02:00
1 parent 61af6f13df
commit 32d15dda78
1 file changed
+7
@@ -28,6 +28,11 @@ namespace Collections.Benchmarks.Core
}
}
protected override string GetTestMethodName(TTestCase? benchmarkType)
{
return $"{base.GetTestMethodName(benchmarkType)}{MethodNameSuffix}";
}
protected override void PrepareData<T>(T benchmarkType)
{
Console.WriteLine($"******* PREPARING DATA FOR {benchmarkType} *******");
@@ -88,5 +93,7 @@ namespace Collections.Benchmarks.Core
PrepareData(CollectionsBenchmarksSource.Array);
base.Setup();
}
public virtual string MethodNameSuffix { get; } = string.Empty;
}
}