1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

fix(tests): assert correct exception for IList<T>.RemoveRange

This commit is contained in:
Oliver Booth 2024-01-06 17:11:47 +00:00
parent ceb7989d2d
commit 7d911b9124
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -175,9 +175,9 @@ internal class ListTests
} }
[Test] [Test]
public void RemoveRange_ShouldThrowArgumentException_GivenEndIndexLessThanStart() public void RemoveRange_ShouldThrowArgumentOutOfRangeException_GivenEndIndexLessThanStart()
{ {
Assert.Throws<ArgumentException>(() => new List<int>().RemoveRange(2..0)); Assert.Throws<ArgumentOutOfRangeException>(() => new List<int>().RemoveRange(2..0));
} }
[Test] [Test]