mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 15:22:56 +08:00
Update expected exception in test.
This commit is contained in:
parent
40b43b85f1
commit
927ba4c113
@ -25,7 +25,7 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
{
|
{
|
||||||
Assert.AreEqual(0, stack.Count);
|
Assert.AreEqual(0, stack.Count);
|
||||||
|
|
||||||
Assert.Throws<IndexOutOfRangeException>(() =>
|
Assert.Throws<ArgumentOutOfRangeException>(() =>
|
||||||
{
|
{
|
||||||
int unused = stack[0];
|
int unused = stack[0];
|
||||||
});
|
});
|
||||||
@ -55,7 +55,7 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
// e.g. indices 3, 4, 5, 6 (out of range)
|
// e.g. indices 3, 4, 5, 6 (out of range)
|
||||||
for (int i = stack.Count; i < stack.Count + capacity; i++)
|
for (int i = stack.Count; i < stack.Count + capacity; i++)
|
||||||
{
|
{
|
||||||
Assert.Throws<IndexOutOfRangeException>(() =>
|
Assert.Throws<ArgumentOutOfRangeException>(() =>
|
||||||
{
|
{
|
||||||
int unused = stack[i];
|
int unused = stack[i];
|
||||||
});
|
});
|
||||||
@ -80,7 +80,7 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
// e.g. indices 3, 4, 5, 6 (out of range)
|
// e.g. indices 3, 4, 5, 6 (out of range)
|
||||||
for (int i = stack.Count; i < stack.Count + capacity; i++)
|
for (int i = stack.Count; i < stack.Count + capacity; i++)
|
||||||
{
|
{
|
||||||
Assert.Throws<IndexOutOfRangeException>(() =>
|
Assert.Throws<ArgumentOutOfRangeException>(() =>
|
||||||
{
|
{
|
||||||
int unused = stack[i];
|
int unused = stack[i];
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user