IndexOf & LongIndexOf made alike. Small refactoring.
This commit is contained in:
1 parent
a50ef10989
commit
ec355160f9
2 files changed
+30
-55
No files matched your search
@@ -169,10 +169,10 @@ namespace Recyclable.CollectionsTests
|
||||
using var list = NewRecyclableList;
|
||||
|
||||
// Act & Validate
|
||||
foreach (var index in _testData)
|
||||
foreach (var item in _testData)
|
||||
{
|
||||
var actual = list.IndexOf(index);
|
||||
_ = actual.Should().Be(index - 1);
|
||||
var actual = list.IndexOf(item);
|
||||
_ = actual.Should().Be(item - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user