Added support for xxxSameType benchmarks.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user