DownButton() public method

Handles the clicking of the down button on the spin box.
public DownButton ( ) : void
return void
		public void DownButton_DisplayingAbsoluteValues()
		{
			using (UpDownMeasureControl c = new UpDownMeasureControl())
			{
				c.DisplayAbsoluteValues = true;
				c.MeasureType = MsrSysType.Point;
				c.MeasureMin = -30000;
				c.MeasureMax = 30000;
				c.MeasureValue = 0;
				Assert.AreEqual(0, c.MeasureValue);
				Assert.AreEqual("0 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(-1000, c.MeasureValue);
				Assert.AreEqual("1 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(-2000, c.MeasureValue);
				Assert.AreEqual("2 pt", c.Text);
			}
		}
		public void UpDownButtons_IncrementFactor()
		{
			using (UpDownMeasureControl c = new UpDownMeasureControl())
			{
				c.MeasureType = MsrSysType.Point;
				c.MeasureMin = -10000;
				c.MeasureMax = 10000;
				c.MeasureValue = 2000;
				c.MeasureIncrementFactor = 6;
				c.UpButton();
				Assert.AreEqual(6000, c.MeasureValue);
				Assert.AreEqual("6 pt", c.Text);
				c.UpButton();
				Assert.AreEqual(10000, c.MeasureValue);
				Assert.AreEqual("10 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(6000, c.MeasureValue);
				Assert.AreEqual("6 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(0, c.MeasureValue);
				Assert.AreEqual("0 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(-6000, c.MeasureValue);
				Assert.AreEqual("-6 pt", c.Text);
				c.DownButton();
				Assert.AreEqual(-10000, c.MeasureValue);
				Assert.AreEqual("-10 pt", c.Text);
			}
		}
		public void DownButton()
		{
			using (UpDownMeasureControl c = new UpDownMeasureControl())
			{
				c.MeasureType = MsrSysType.Point;
				c.MeasureMin = -100000;
				c.MeasureMax = 100000;
				c.MeasureValue = 2000;
				c.DownButton();
				Assert.AreEqual(1000, c.MeasureValue);
				Assert.AreEqual("1 pt", c.Text);
				c.MeasureValue = 2456;
				c.DownButton();
				Assert.AreEqual(2000, c.MeasureValue);
				Assert.AreEqual("2 pt", c.Text);
				c.MeasureValue = -100000;
				c.DownButton();
				Assert.AreEqual(-100000, c.MeasureValue);
				Assert.AreEqual("-100 pt", c.Text);
				c.MeasureValue = -3200;
				c.DownButton();
				Assert.AreEqual(-4000, c.MeasureValue);
				Assert.AreEqual("-4 pt", c.Text);

				c.MeasureType = MsrSysType.Cm;
				c.Text = "2.8";
				c.DownButton();
				Assert.AreEqual(76535, c.MeasureValue);
				Assert.AreEqual("2.7 cm", c.Text);
				c.Text = "2.85";
				c.DownButton();
				Assert.AreEqual(79370, c.MeasureValue);
				Assert.AreEqual("2.8 cm", c.Text);
				c.Text = "-3.5";
				c.DownButton();
				Assert.AreEqual(-100000, c.MeasureValue);
				Assert.AreEqual("-3.53 cm", c.Text);
				c.Text = "-2";
				c.DownButton();
				Assert.AreEqual(-59528, c.MeasureValue);
				Assert.AreEqual("-2.1 cm", c.Text);

				c.MeasureType = MsrSysType.Inch;
				c.Text = "1";
				c.DownButton();
				Assert.AreEqual(64800, c.MeasureValue);
				Assert.AreEqual("0.9\"", c.Text);
				c.Text = "0.899";
				c.DownButton();
				Assert.AreEqual(57600, c.MeasureValue);
				Assert.AreEqual("0.8\"", c.Text);
				c.Text = "-1.3";
				c.DownButton();
				Assert.AreEqual(-100000, c.MeasureValue);
				Assert.AreEqual("-1.39\"", c.Text);
				c.Text = "-0.95";
				c.DownButton();
				Assert.AreEqual(-72000, c.MeasureValue);
				Assert.AreEqual("-1\"", c.Text);

				c.MeasureType = MsrSysType.Mm;
				c.Text = "2";
				c.DownButton();
				Assert.AreEqual(2835, c.MeasureValue);
				Assert.AreEqual("1 mm", c.Text);
				c.Text = "2.72";
				c.DownButton();
				Assert.AreEqual(5669, c.MeasureValue);
				Assert.AreEqual("2 mm", c.Text);
				c.Text = "-35";
				c.DownButton();
				Assert.AreEqual(-100000, c.MeasureValue);
				Assert.AreEqual("-35.28 mm", c.Text);
				c.Text = "0";
				c.DownButton();
				Assert.AreEqual(-2835, c.MeasureValue);
				Assert.AreEqual("-1 mm", c.Text);
			}
		}