public void OptionNames() { var s = new SendBoxOptions(); var names = s.GetOptionNames(); Assert.AreEqual(propertyNames.Count, names.Count); }
public void ButtonColorHoverCustom() { var propertyIndex = 7; var expectedValue = CreateColor(); var src = new SendBoxOptions { ButtonColorHover = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextColorCustom() { var propertyIndex = 11; var expectedValue = CreateColor(KnownColor.Black); var src = new SendBoxOptions { TextColor = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void HideCustom() { var propertyIndex = 0; var expectedValue = true; var src = new SendBoxOptions { Hide = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void PlaceholderColorCustom() { var propertyIndex = 16; var expectedValue = CreateColor(); var src = new SendBoxOptions { PlaceholderColor = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void MicrophoneColorCustom() { var propertyIndex = 2; var expectedValue = CreateColor(); var src = new SendBoxOptions { MicrophoneColor = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextWrapCustom() { var propertyIndex = 17; var expectedValue = true; var src = new SendBoxOptions { TextWrap = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void BorderTopCustom() { var propertyIndex = 15; var expectedValue = CreateBorder(); var src = new SendBoxOptions { BorderTop = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void BackgroundColorCustom() { var propertyIndex = 3; var expectedValue = CreateColor(KnownColor.White); var src = new SendBoxOptions { BackgroundColor = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void HeightMaxCustom() { var propertyIndex = 10; var expectedValue = r.Next(100, 300, SendBoxOptions.Defaults.HeightMax); var src = new SendBoxOptions { HeightMax = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextColorDisabledCustom() { var propertyIndex = 8; var expectedValue = CreateColor(); var src = new SendBoxOptions { TextColorDisabled = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void EmptyContructor() { var src = new SendBoxOptions { }; var so = PopulateOptions(src); Assert.AreEqual(0, so.Count); so = PopulateOptions(src, true); Assert.AreEqual(18, so.Count); }
public void HideDefault() { var propertyIndex = 0; var expectedValue = SendBoxOptions.Defaults.Hide; var src = new SendBoxOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void PlaceholderColorDefault() { var propertyIndex = 16; var expectedValue = SendBoxOptions.Defaults.PlaceholderColor; var src = new SendBoxOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void ButtonColorHoverDefault() { var propertyIndex = 7; var expectedValue = SendBoxOptions.Defaults.ButtonColorHover; var src = new SendBoxOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void BorderBottomDefault() { var propertyIndex = 12; var expectedValue = SendBoxOptions.Defaults.BorderBottom; var src = new SendBoxOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextColorDisabledDefault() { var propertyIndex = 8; var expectedValue = SendBoxOptions.Defaults.TextColorDisabled; var src = new SendBoxOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }