public void TestBasicInvalidations() { // - test the properties that are supposed to invalidate the object measurement UIElementLayeringTests.TestMeasureInvalidation(this, () => Font = new DummyFont()); Font = null; UIElementLayeringTests.TestMeasureInvalidation(this, () => Text = "New Text"); // - test the properties that are not supposed to invalidate the object layout state UIElementLayeringTests.TestNoInvalidation(this, () => TextColor = new Color(1, 2, 3, 4)); }