diff --git a/Collections.Benchmarks.Core/DataDrivenBenchmarksBase.cs b/Collections.Benchmarks.Core/DataDrivenBenchmarksBase.cs index ecb71fc..e47fbf1 100644 --- a/Collections.Benchmarks.Core/DataDrivenBenchmarksBase.cs +++ b/Collections.Benchmarks.Core/DataDrivenBenchmarksBase.cs @@ -28,6 +28,11 @@ namespace Collections.Benchmarks.Core } } + protected override string GetTestMethodName(TTestCase? benchmarkType) + { + return $"{base.GetTestMethodName(benchmarkType)}{MethodNameSuffix}"; + } + protected override void PrepareData(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; } }