public void OptionNames() { var s = new ConnectivityOptions(); var names = s.GetOptionNames(); Assert.AreEqual(propertyNames.Count, names.Count); }
public void IconPaddingCustom() { var propertyIndex = 0; var expectedValue = 11.0; var src = new ConnectivityOptions { IconPadding = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void NotificationTextCustom() { var propertyIndex = 6; var expectedValue = CreateColor(); var src = new ConnectivityOptions { NotificationText = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void SlowAfterCustom() { var propertyIndex = 7; var expectedValue = 1000; var src = new ConnectivityOptions { SlowAfter = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void SlowCustom() { var propertyIndex = 5; var expectedValue = CreateColor(); var src = new ConnectivityOptions { Slow = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextSizeCustom() { var propertyIndex = 3; var expectedValue = 25; var src = new ConnectivityOptions { TextSize = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, CreatePercentageValue(expectedValue)); }
public void MarginVerticalCustom() { var propertyIndex = 2; var expectedValue = 9.0; var src = new ConnectivityOptions { MarginVertical = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void EmptyContructor() { var src = new ConnectivityOptions { }; var so = PopulateOptions(src); Assert.AreEqual(0, so.Count); so = PopulateOptions(src, true); Assert.AreEqual(8, so.Count); }
public void MarginHorizontalDefault() { var propertyIndex = 1; var expectedValue = ConnectivityOptions.Defaults.MarginHorizontal; var src = new ConnectivityOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void IconPaddingDefault() { var propertyIndex = 0; var expectedValue = ConnectivityOptions.Defaults.IconPadding; var src = new ConnectivityOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void SlowAfterDefault() { var propertyIndex = 7; var expectedValue = ConnectivityOptions.Defaults.SlowAfter; var src = new ConnectivityOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void NotificationTextDefault() { var propertyIndex = 6; var expectedValue = ConnectivityOptions.Defaults.NotificationText; var src = new ConnectivityOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void TextSizeDefault() { var propertyIndex = 3; var expectedValue = ConnectivityOptions.Defaults.TextSize; var src = new ConnectivityOptions { }; var so = PopulateOptions(src); AssertEmptyProperty(so, propertyIndex); so = PopulateOptions(src, true); AssertPopulatedProperty(so, propertyIndex, CreatePercentageValue(expectedValue)); }