mirror of
https://github.com/ppy/osu
synced 2025-04-01 22:48:33 +00:00
Use barely better assertion fail message in test
This commit is contained in:
parent
8d7539ab70
commit
ee56b4d205
@ -4,6 +4,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||||
@ -243,7 +244,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
void revertAndCheckUnchanged()
|
void revertAndCheckUnchanged()
|
||||||
{
|
{
|
||||||
AddStep("Revert changes", () => changeHandler.RestoreState(int.MinValue));
|
AddStep("Revert changes", () => changeHandler.RestoreState(int.MinValue));
|
||||||
AddAssert("Current state is same as default", () => defaultState.SequenceEqual(changeHandler.GetCurrentState()));
|
AddAssert("Current state is same as default",
|
||||||
|
() => Encoding.UTF8.GetString(defaultState),
|
||||||
|
() => Is.EqualTo(Encoding.UTF8.GetString(changeHandler.GetCurrentState())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user