mirror of
https://github.com/ppy/osu
synced 2025-04-04 15:20:06 +00:00
Update assertions in test
This commit is contained in:
parent
23c427cd3e
commit
67a5e01c49
@ -220,7 +220,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
public void TestSelectedModsDontAffectStatistics()
|
public void TestSelectedModsDontAffectStatistics()
|
||||||
{
|
{
|
||||||
AddStep("show map", () => overlay.ShowBeatmapSet(getBeatmapSet()));
|
AddStep("show map", () => overlay.ShowBeatmapSet(getBeatmapSet()));
|
||||||
AddAssert("AR displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value == (0, null));
|
AddAssert("AR displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value, () => Is.EqualTo((0, 0)));
|
||||||
AddStep("set AR10 diff adjust", () => SelectedMods.Value = new[]
|
AddStep("set AR10 diff adjust", () => SelectedMods.Value = new[]
|
||||||
{
|
{
|
||||||
new OsuModDifficultyAdjust
|
new OsuModDifficultyAdjust
|
||||||
@ -228,7 +228,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
ApproachRate = { Value = 10 }
|
ApproachRate = { Value = 10 }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
AddAssert("AR still displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value == (0, null));
|
AddAssert("AR still displayed as 0", () => overlay.ChildrenOfType<AdvancedStats.StatisticRow>().Single(s => s.Title == BeatmapsetsStrings.ShowStatsAr).Value, () => Is.EqualTo((0, 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user