Ejemplo n.º 1
0
        public void MethodResetMinimumSize()
        {
            ToolStrip ts = new ToolStrip();

            ts.Size = new Size(600, 600);

            Assert.AreEqual(new Size(0, 0), ts.MinimumSize, "M0");

            ts.MinimumSize = new Size(400, 400);

            Assert.AreEqual(new Size(600, 600), ts.Size, "M1");
            Assert.AreEqual(new Size(400, 400), ts.MinimumSize, "M2");

            ts.ResetMinimumSize();
            Assert.AreEqual(new Size(600, 600), ts.Size, "M3");
            Assert.AreEqual(new Size(-1, -1), ts.MinimumSize, "M4");
        }