Cleanup test step wording.

This commit is contained in:
DrabWeb 2018-05-15 19:56:47 -03:00
parent f67ad7b8e8
commit dda253758b

View File

@ -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
{