mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 03:23:03 +08:00
Update tests to match new equality not including online ID checks
This commit is contained in:
parent
18f73b985b
commit
93fe57d399
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.Extensions;
|
||||||
|
|
||||||
namespace osu.Game.Tests.NonVisual
|
namespace osu.Game.Tests.NonVisual
|
||||||
{
|
{
|
||||||
@ -15,7 +16,8 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
var ourInfo = new BeatmapSetInfo { OnlineID = 123 };
|
var ourInfo = new BeatmapSetInfo { OnlineID = 123 };
|
||||||
var otherInfo = new BeatmapSetInfo { OnlineID = 123 };
|
var otherInfo = new BeatmapSetInfo { OnlineID = 123 };
|
||||||
|
|
||||||
Assert.AreEqual(ourInfo, otherInfo);
|
Assert.AreNotEqual(ourInfo, otherInfo);
|
||||||
|
Assert.IsTrue(ourInfo.MatchesOnlineID(otherInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -33,7 +35,8 @@ namespace osu.Game.Tests.NonVisual
|
|||||||
var ourInfo = new BeatmapSetInfo { ID = 123, OnlineID = 12 };
|
var ourInfo = new BeatmapSetInfo { ID = 123, OnlineID = 12 };
|
||||||
var otherInfo = new BeatmapSetInfo { OnlineID = 12 };
|
var otherInfo = new BeatmapSetInfo { OnlineID = 12 };
|
||||||
|
|
||||||
Assert.AreEqual(ourInfo, otherInfo);
|
Assert.AreNotEqual(ourInfo, otherInfo);
|
||||||
|
Assert.IsTrue(ourInfo.MatchesOnlineID(otherInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user