mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Cleanup test step wording.
This commit is contained in:
parent
f67ad7b8e8
commit
dda253758b
@ -28,7 +28,7 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
changedScreen = currentScreen = startScreen = new TestScreenOne(),
|
||||
currentScreen = startScreen = new TestScreenOne(),
|
||||
new FillFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
@ -52,6 +52,8 @@ namespace osu.Game.Tests.Visual
|
||||
changedScreen = s;
|
||||
};
|
||||
|
||||
breadcrumbs.Current.TriggerChange();
|
||||
|
||||
assertCurrent();
|
||||
pushNext();
|
||||
assertCurrent();
|
||||
@ -78,7 +80,7 @@ namespace osu.Game.Tests.Visual
|
||||
}
|
||||
|
||||
private void pushNext() => AddStep(@"push next screen", () => currentScreen = ((TestScreen)currentScreen).PushNext());
|
||||
private void assertCurrent() => AddAssert(@"current screen is correct", () => currentScreen == changedScreen);
|
||||
private void assertCurrent() => AddAssert(@"changedScreen correct", () => currentScreen == changedScreen);
|
||||
|
||||
private abstract class TestScreen : OsuScreen
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user