mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Update tests to reflect new expected behaviour
This commit is contained in:
@ -99,15 +99,15 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tests expanding a container will expand underlying groups if contracted.
|
/// Tests expanding a container will not expand underlying groups if they were manually contracted by the user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Test]
|
[Test]
|
||||||
public void TestExpandingContainerExpandsContractedGroup()
|
public void TestExpandingContainerDoesNotExpandContractedGroup()
|
||||||
{
|
{
|
||||||
AddStep("contract group", () => toolboxGroup.Expanded.Value = false);
|
AddStep("contract group", () => toolboxGroup.Expanded.Value = false);
|
||||||
|
|
||||||
AddStep("expand container", () => container.Expanded.Value = true);
|
AddStep("expand container", () => container.Expanded.Value = true);
|
||||||
AddAssert("group expanded", () => toolboxGroup.Expanded.Value);
|
AddAssert("group not expanded", () => !toolboxGroup.Expanded.Value);
|
||||||
AddAssert("controls expanded", () => slider1.Expanded.Value && slider2.Expanded.Value);
|
AddAssert("controls expanded", () => slider1.Expanded.Value && slider2.Expanded.Value);
|
||||||
|
|
||||||
AddStep("contract container", () => container.Expanded.Value = false);
|
AddStep("contract container", () => container.Expanded.Value = false);
|
||||||
|
Reference in New Issue
Block a user