Пример #1
0
		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));
				}
			}
		}
Пример #2
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));
				}
			}
		}
Пример #3
0
		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));
				}
			}
		}
Пример #4
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));
         }
     }
 }
Пример #5
0
 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));
         }
     }
 }
Пример #6
0
 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));
         }
     }
 }
Пример #7
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));
         }
     }
 }
Пример #8
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));
				}
			}
		}