예제 #1
0
        private void ChangeAuxiliaryLineSizeWhereBottomRight(AuxiliaryController ac,
                                                             int changeSizeWidth,
                                                             int changeSizeHeight,
                                                             bool isWidthMuchLongerThanHeight)
        {
            AuxiliaryLineTestData testData
                = new AuxiliaryLineChangeSizeBottomRight(ac).ChangeSize(changeSizeWidth,
                                                                        changeSizeHeight,
                                                                        isWidthMuchLongerThanHeight);

            AreParameterEqual(testData, ac);
        }
예제 #2
0
        public void TestUndoInputCursorKeyRight()
        {
            AuxiliaryController ac = Common.GetAuxiliaryControllerImage001RatioTypeW16H9();

            // 矩形を小さくして、右キーで矩形を移動できるだけのスペースを作る
            AuxiliaryLineTestData testData
                = new AuxiliaryLineChangeSizeBottomRight(ac).ChangeSize(-100, -5, true);

            ac.SetEvent();
            ac.PublishEvent(Keys.EnableKeys.Right);
            Assert.AreEqual(0, ac.AuxiliaryTop);
            Assert.AreEqual(1, ac.AuxiliaryLeft);

            ac.CancelEvent();
            Assert.AreEqual(0, ac.AuxiliaryTop);
            Assert.AreEqual(0, ac.AuxiliaryLeft);
        }