diff --git a/Recyclable.CollectionsTests/RecyclableListTests.cs b/Recyclable.CollectionsTests/RecyclableListTests.cs index 9416e5d..fd85871 100644 --- a/Recyclable.CollectionsTests/RecyclableListTests.cs +++ b/Recyclable.CollectionsTests/RecyclableListTests.cs @@ -289,5 +289,24 @@ namespace Recyclable.CollectionsTests // Act _ = Assert.Throws(() => list.Insert(0, -1)); } + + [Fact] + public void LongIndexOfShouldReturnCorrectIndexes() + { + // Prepare + var testData = _testData.ToArray(); + var list = new RecyclableList(testData); + + // Act & Validate + foreach (var item in testData) + { + // Act + var index = list.LongIndexOf(item); + + // Validate + _ = index.Should().Be(item - 1); + } + } + } -} +} \ No newline at end of file