public void LayoutGroupRemoveAll() { tlog.Debug(tag, $"LayoutGroupRemoveAll START"); var testingTarget = new MyLayoutGroup(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should return LayoutGroup instance."); using (LayoutItem layoutItem = new LayoutItem()) { testingTarget.Add(layoutItem); Assert.AreEqual(testingTarget.ChildCount(), 1, "Should 1 for the added child."); testingTarget.RemoveAll(); Assert.AreEqual(testingTarget.ChildCount(), 0, "Should 0 as child removed."); } testingTarget.Dispose(); tlog.Debug(tag, $"LayoutGroupRemoveAll END (OK)"); }