mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove pointless test coverage of DrawablePage
This commit is contained in:
@ -10,7 +10,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
public class TestScenePageSelector : OsuTestScene
|
public class TestScenePageSelector : OsuTestScene
|
||||||
{
|
{
|
||||||
private readonly PageSelector pageSelector;
|
private readonly PageSelector pageSelector;
|
||||||
private readonly PageSelectorPageButton pageSelectorPageButton;
|
|
||||||
|
|
||||||
public TestScenePageSelector()
|
public TestScenePageSelector()
|
||||||
{
|
{
|
||||||
@ -21,12 +20,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = 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);
|
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 setMaxPages(int maxPages) => pageSelector.MaxPages.Value = maxPages;
|
||||||
|
|
||||||
private void setCurrentPage(int currentPage) => pageSelector.CurrentPage.Value = currentPage;
|
private void setCurrentPage(int currentPage) => pageSelector.CurrentPage.Value = currentPage;
|
||||||
|
Reference in New Issue
Block a user