Skip to content

Commit

Permalink
fix(tests): assert correct exception for IList<T>.RemoveRange
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Jan 6, 2024
1 parent ceb7989 commit 7d911b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions X10D.Tests/src/Collections/ListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public void RemoveRange_ShouldThrowArgumentNullException_GivenNull()
}

[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]
Expand Down

0 comments on commit 7d911b9

Please sign in to comment.