public void OnChildRemovedCalled() { var layout = new CustomLayout(); var button = new Button(); layout.Add(button); Assert.AreEqual(0, layout.RemovedCount); layout.Remove(button); Assert.AreEqual(1, layout.RemovedCount); }