mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
Add/improve comments
This commit is contained in:
@@ -13,6 +13,9 @@ namespace osu.Framework.Tests.Layout.ContainerLayout
|
||||
{
|
||||
public class TestSceneContainerLayout : FrameworkTestScene
|
||||
{
|
||||
/// <summary>
|
||||
/// Tests that auto-size is updated when a child becomes alive.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestContainerAutoSizeUpdatesWhenChildBecomesAlive()
|
||||
{
|
||||
@@ -38,6 +41,9 @@ namespace osu.Framework.Tests.Layout.ContainerLayout
|
||||
AddAssert("parent has size 200", () => Precision.AlmostEquals(new Vector2(200), parent.DrawSize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that auto-size is updated when a child is removed through death.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestContainerAutoSizeUpdatesWhenChildBecomesDead()
|
||||
{
|
||||
@@ -58,6 +64,9 @@ namespace osu.Framework.Tests.Layout.ContainerLayout
|
||||
AddAssert("parent has size 0", () => Precision.AlmostEquals(Vector2.Zero, parent.DrawSize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that auto-size is updated when a child becomes dead and doesn't get removed.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestContainerAutoSizeUpdatesWhenChildBecomesDeadWithoutRemoval()
|
||||
{
|
||||
@@ -80,7 +89,7 @@ namespace osu.Framework.Tests.Layout.ContainerLayout
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that an auto-size properly captures a child's presence change.
|
||||
/// Tests that auto-size properly captures a child's presence change.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestAddHiddenChildAndFadeIn()
|
||||
|
||||
@@ -15,10 +15,10 @@ namespace osu.Framework.Tests.Layout.DrawableLayout
|
||||
public class TestSceneDrawableLayout : FrameworkTestScene
|
||||
{
|
||||
/// <summary>
|
||||
/// Tests changing properties that overlap in their invalidation types (size + scale).
|
||||
/// Tests that multiple invalidations trigger for properties that don't overlap in their invalidation types (size + scale).
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestChangeOverlappingProperties()
|
||||
public void TestChangeNonOverlappingProperties()
|
||||
{
|
||||
Box[] boxes = new Box[4];
|
||||
TestContainer1 testContainer = null;
|
||||
|
||||
@@ -13,6 +13,9 @@ namespace osu.Framework.Tests.Layout.GridContainerLayout
|
||||
{
|
||||
public class TestSceneGridContainerLayout : FrameworkTestScene
|
||||
{
|
||||
/// <summary>
|
||||
/// Tests that a grid's auto-size is updated when a child becomes alive.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestGridContainerAutoSizeUpdatesWhenChildBecomesAlive()
|
||||
{
|
||||
@@ -43,6 +46,9 @@ namespace osu.Framework.Tests.Layout.GridContainerLayout
|
||||
AddAssert("parent has size 200", () => Precision.AlmostEquals(new Vector2(200), parent.DrawSize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that a grid's auto-size is updated when a child is removed through death.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestGridContainerAutoSizeUpdatesWhenChildBecomesDead()
|
||||
{
|
||||
@@ -69,6 +75,9 @@ namespace osu.Framework.Tests.Layout.GridContainerLayout
|
||||
AddAssert("parent has size 0", () => Precision.AlmostEquals(Vector2.Zero, parent.DrawSize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that a grid's auto-size is updated when a child becomes dead and doesn't get removed.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestGridContainerAutoSizeUpdatesWhenChildBecomesDeadWithoutRemoval()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user