コード例 #1
0
        public void TestMethod14()
        {
            ViewStub   window     = new ViewStub();
            Controller controller = new Controller(window);

            window.FireCloseEvent();
            window.FireUpdateCellEvent(10, 10, "Test");
            window.FireCloseEvent();
            Assert.IsTrue(window.CalledDoClose);
            Assert.IsTrue(window.CellUpdated);
            window.SetCellContents("ismael");
            Assert.IsTrue(window.CalledSetCellContents);
        }
コード例 #2
0
        public void TestMethod1()
        {
            ViewStub   window     = new ViewStub();
            Controller controller = new Controller(window);

            window.FireCloseEvent();
            Assert.IsTrue(window.CalledDoClose);
        }
コード例 #3
0
        public void TestMethod1_3()
        {
            ViewStub   window     = new ViewStub();
            Controller controller = new Controller(window);

            window.FireUpdateCellEvent(0, 0, "Test");
            window.FireSaveEvent();
            window.FireCloseEvent();
            Assert.IsTrue(window.CalledDoClose);
        }
コード例 #4
0
        public void TestMethod16()
        {
            ViewStub   window     = new ViewStub();
            Controller controller = new Controller(window);

            window.FireNew();
            window.SetCellContents("ismael");
            window.SetCellSelection(1, 2);
            window.SetCellValue(1, 2, "c");
            window.FireUpdateCellEvent(10, 10, "=a");
            window.FireCloseEvent();

            Assert.IsTrue(window.New);
            Assert.IsTrue(window.CalledSetCellContents);
            Assert.IsTrue(window.CalledSetCellSelection);
            Assert.IsTrue(window.CalledSetCellValue);
            Assert.IsTrue(window.CellUpdated);
            Assert.IsTrue(window.CalledDoClose);
        }