1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 00:58:48 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Oliver Booth
f36322b191
Merge 7d911b9124 into 5ff7b68b37 2024-01-06 17:11:58 +00:00
7d911b9124
fix(tests): assert correct exception for IList<T>.RemoveRange 2024-01-06 17:11:47 +00:00

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]