RecyclableList.InsertAt test added.
This commit is contained in:
1 parent
32d915087f
commit
a37f572518
1 file changed
+11
@@ -278,5 +278,16 @@ namespace Recyclable.CollectionsTests
|
|||||||
.And.ContainInConsecutiveOrder(testData)
|
.And.ContainInConsecutiveOrder(testData)
|
||||||
.And.BeEquivalentTo(testData);
|
.And.BeEquivalentTo(testData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void InsertAtTheBeginningShouldMoveItems()
|
||||||
|
{
|
||||||
|
// Prepare
|
||||||
|
var testData = _testData.ToArray();
|
||||||
|
var list = new RecyclableList<int>();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
_ = Assert.Throws<NotSupportedException>(() => list.Insert(0, -1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user