Add/improve comments

This commit is contained in:
smoogipoo
2020-02-27 11:04:11 +09:00
parent 6b69ab5bfb
commit a53a93a4e1
3 changed files with 21 additions and 3 deletions

View File

@@ -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()

View File

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

View File

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