public void CanCascade() { var style = new Style <Label>(); Style?formsStyle = style; Assert.IsFalse(formsStyle?.CanCascade); style.CanCascade(true); Assert.IsTrue(formsStyle?.CanCascade); }