Esempio n. 1
0
 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));
         }
     }
 }
Esempio n. 2
0
 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));
         }
     }
 }