mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 14:48:47 +00:00
fix(tests): assert correct exception for IList<T>.RemoveRange
This commit is contained in:
parent
ceb7989d2d
commit
7d911b9124
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user