fix(dock): encapsulate Children collection and polish tests

This commit is contained in:
2026-03-28 12:45:55 +09:00
parent 3ea4260405
commit 87217337b7
2 changed files with 8 additions and 7 deletions

View File

@@ -1,5 +1,4 @@
using Ghost.Editor.Core.Controls.Internal.Docking;
using Microsoft.UI.Xaml.Controls;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Ghost.UnitTest;
@@ -50,7 +49,7 @@ public class DockingModelTest
{
thrown = true;
}
Assert.IsTrue(thrown);
Assert.IsTrue(thrown, "Should have thrown InvalidOperationException due to cycle.");
}
[TestMethod]