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
1 changed files with 2 additions and 2 deletions

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]