Added support for xxxSameType benchmarks.

This commit is contained in:
mlemanczyk committed 2023-06-11 22:06:50 +02:00
1 parent 15614de8a4
commit e977cea2e1
1 file changed
+1 -1
@@ -68,6 +68,6 @@ namespace Recyclable.Collections.Benchmarks
protected override Action? GetTestMethod(RecyclableCollectionsBenchmarkSource benchmarkType)
=> (Action?) GetType().GetMethod($"{benchmarkType}_{TestCase}", BindingFlags.Instance | BindingFlags.Public)?.CreateDelegate(typeof(Action), this)
?? throw CreateMethodNotFoundException($"{benchmarkType}_{TestCase}", GetType().FullName);
?? (Action?)GetType().GetMethod($"{benchmarkType}_AddRangeWhenSourceIs{benchmarkType}", BindingFlags.Instance | BindingFlags.Public)?.CreateDelegate(typeof(Action), this);
}
}