public void IsInherited_FwColorComboRed_ReturnsFalse() { using (var colorCombo = new FwColorCombo()) { colorCombo.ColorValue = Color.Red; using (var t = new FwFontAttributes()) { t.ShowingInheritedProperties = true; Assert.IsFalse(ReflectionHelper.GetBoolResult(t, "IsInherited", colorCombo)); } } }
public void IsInherited_ShowUnspecified_ReturnsTrue() { using (var colorCombo = new FwColorCombo()) { colorCombo.ShowUnspecified = true; //colorCombo.ColorValue = Color.Empty; using (var t = new FwFontAttributes()) { t.ShowingInheritedProperties = true; Assert.IsTrue(ReflectionHelper.GetBoolResult(t, "IsInherited", colorCombo)); } } }