1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:35:35 +08:00

Remove pointless test coverage of DrawablePage

This commit is contained in:
Dean Herbert 2022-01-04 17:53:23 +09:00
parent ee4f5c0e79
commit d10b8c79b3

View File

@ -10,7 +10,6 @@ namespace osu.Game.Tests.Visual.UserInterface
public class TestScenePageSelector : OsuTestScene
{
private readonly PageSelector pageSelector;
private readonly PageSelectorPageButton pageSelectorPageButton;
public TestScenePageSelector()
{
@ -21,12 +20,6 @@ namespace osu.Game.Tests.Visual.UserInterface
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
pageSelectorPageButton = new PageSelectorPageButton(1234)
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Margin = new MarginPadding { Top = 50 },
}
});
}
@ -58,13 +51,6 @@ namespace osu.Game.Tests.Visual.UserInterface
AddAssert("Max is 1", () => pageSelector.MaxPages.Value == 1);
}
[Test]
public void TestDrawablePage()
{
AddStep("Select", () => pageSelectorPageButton.Selected = true);
AddStep("Deselect", () => pageSelectorPageButton.Selected = false);
}
private void setMaxPages(int maxPages) => pageSelector.MaxPages.Value = maxPages;
private void setCurrentPage(int currentPage) => pageSelector.CurrentPage.Value = currentPage;