public void Parse(string culture, string input, string output, float turns) { var cultureInfo = CultureInfo.GetCultureInfo(culture); var value = HueValue.Parse(input, cultureInfo); Assert.AreEqual(turns, value.Turns, 0.01); Assert.AreEqual(output, value.ToString(cultureInfo)); }
void ReleaseDesignerOutlets() { if (GoBackButton != null) { GoBackButton.Dispose(); GoBackButton = null; } if (AdjustBrightnessCheckbox != null) { AdjustBrightnessCheckbox.Dispose(); AdjustBrightnessCheckbox = null; } if (AdjustHueCheckbox != null) { AdjustHueCheckbox.Dispose(); AdjustHueCheckbox = null; } if (AdjustOpacityCheckbox != null) { AdjustOpacityCheckbox.Dispose(); AdjustOpacityCheckbox = null; } if (AdjustSaturationCheckbox != null) { AdjustSaturationCheckbox.Dispose(); AdjustSaturationCheckbox = null; } if (BaseColorSelector != null) { BaseColorSelector.Dispose(); BaseColorSelector = null; } if (BrightnessSlider != null) { BrightnessSlider.Dispose(); BrightnessSlider = null; } if (BrightnessValue != null) { BrightnessValue.Dispose(); BrightnessValue = null; } if (Color != null) { Color.Dispose(); Color = null; } if (ColorName != null) { ColorName.Dispose(); ColorName = null; } if (HueSlider != null) { HueSlider.Dispose(); HueSlider = null; } if (HueValue != null) { HueValue.Dispose(); HueValue = null; } if (OpacitySlider != null) { OpacitySlider.Dispose(); OpacitySlider = null; } if (OpacityValue != null) { OpacityValue.Dispose(); OpacityValue = null; } if (SaturationSlider != null) { SaturationSlider.Dispose(); SaturationSlider = null; } if (SaturationValue != null) { SaturationValue.Dispose(); SaturationValue = null; } }