public void IsInherited_ShowingInheritedPropertiesIsFalseWithCheckBoxIndeterminate_ReturnsFalse() { using (var checkBox = new CheckBox()) { checkBox.CheckState = CheckState.Indeterminate; using (var t = new FwFontAttributes()) { t.ShowingInheritedProperties = false; Assert.IsFalse(ReflectionHelper.GetBoolResult(t, "IsInherited", checkBox)); } } }
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_CheckBoxChecked_ReturnsFalse() { using (var checkBox = new CheckBox()) { checkBox.CheckState = CheckState.Checked; using (var t = new FwFontAttributes()) { t.ShowingInheritedProperties = true; Assert.IsFalse(ReflectionHelper.GetBoolResult(t, "IsInherited", checkBox)); } } }
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)); } } }