Inheritance: UpDownBase
        public void Defaults()
        {
            UpDownBase udb = new MockUpDown();

            Assert.AreEqual(new Size(0, 0), udb.MaximumSize, "A1");
            Assert.AreEqual(new Size(0, 0), udb.MinimumSize, "A2");

            udb.MaximumSize = new Size(100, 100);
            udb.MinimumSize = new Size(100, 100);

            Assert.AreEqual(new Size(100, 0), udb.MaximumSize, "A3");
            Assert.AreEqual(new Size(100, 0), udb.MinimumSize, "A4");
        }
Exemple #2
0
		public void Defaults ()
		{
			UpDownBase udb = new MockUpDown ();
			
			Assert.AreEqual (new Size (0, 0), udb.MaximumSize, "A1");
			Assert.AreEqual (new Size (0, 0), udb.MinimumSize, "A2");
			
			udb.MaximumSize = new Size (100, 100);
			udb.MinimumSize = new Size (100, 100);

			Assert.AreEqual (new Size (100, 0), udb.MaximumSize, "A3");
			Assert.AreEqual (new Size (100, 0), udb.MinimumSize, "A4");
		}