public void LayoutGroupOnChildAdd() { tlog.Debug(tag, $"LayoutGroupOnChildAdd START"); flagOnChildAddOverride = false; Assert.False(flagOnChildAddOverride, "flagOnChildAddOverride should be false initial"); var testingTarget = new MyLayoutGroup(); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <LayoutGroup>(testingTarget, "Should be an instance of LayoutGroup type."); using (LayoutItem child = new LayoutItem()) { testingTarget.OnChildAddTest(child); Assert.True(flagOnChildAddOverride, "LayoutGroup overridden method not invoked."); } testingTarget.Dispose(); tlog.Debug(tag, $"LayoutGroupOnChildAdd END (OK)"); }