Cleanup
This commit is contained in:
1 parent
00b059006d
commit
76598dcc7d
1 file changed
-31
@@ -4,37 +4,6 @@ namespace Recyclable.CollectionsTests
|
|||||||
{
|
{
|
||||||
public class RecyclableListTestData
|
public class RecyclableListTestData
|
||||||
{
|
{
|
||||||
private static void DisposeTestData(IEnumerable<object[]>? testCases)
|
|
||||||
{
|
|
||||||
if (testCases != null)
|
|
||||||
{
|
|
||||||
foreach (var testData in testCases)
|
|
||||||
{
|
|
||||||
foreach (var item in testData)
|
|
||||||
{
|
|
||||||
if (item is IDisposable disposable)
|
|
||||||
{
|
|
||||||
disposable.Dispose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DisposeTestData(IEnumerable<IEnumerable<long>>? testCases)
|
|
||||||
{
|
|
||||||
if (testCases != null)
|
|
||||||
{
|
|
||||||
foreach (var testData in testCases)
|
|
||||||
{
|
|
||||||
if (testData is IDisposable disposable)
|
|
||||||
{
|
|
||||||
disposable.Dispose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static IEnumerable<long> DoCreateTestData(long itemsCount)
|
private static IEnumerable<long> DoCreateTestData(long itemsCount)
|
||||||
{
|
{
|
||||||
for (long index = 1; index <= itemsCount; index++)
|
for (long index = 1; index <= itemsCount; index++)
|
||||||
|
|||||||
Reference in new issue
Block a user