BenchmarkBase fixed to cover case when BockSize is 0.

This commit is contained in:
Memek committed 2023-03-02 17:47:25 +01:00
1 parent 3552dd00d1
commit 248dff8fda
1 file changed
+2 -2
@@ -13,8 +13,8 @@ namespace Recyclable.Collections.Benchmarks
{
0 => 1,
> 0 and <= 10 => TestObjectCount,
_ => TestObjectCount / Divider
};
_ => TestObjectCount / Divider > 0 ? TestObjectCount / Divider : TestObjectCount
};
protected object[]? _testObjects;
protected object[] TestObjects => _testObjects ?? throw new NullReferenceException("Something is wrong and the field is not initialized");