예제 #1
0
        public void Test_Method5()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireSaveAsEvent("s");
        }
예제 #2
0
        public void Test_Method8()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireSetCellContentEvent("=5+5");
        }
예제 #3
0
        public void Test_Method9()
        {
            string path = @"..\..\dfs.ss";
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireOpenEvent(path);
        }
예제 #4
0
        public void Test_Method7()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireSetCellContentEvent("hello");
            stub.FireCloseEvent();
        }
예제 #5
0
        public void Test_Method2()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireNewEvent();
            Assert.IsTrue(stub.CalledOpenNew);
        }
예제 #6
0
        public void TestMethod1()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireCloseEvent();
            Assert.IsTrue(stub.CalledDoClose);
        }
예제 #7
0
        public void Test_Method11()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FileName = "file";
            stub.FireSetCellContentEvent("text");
            stub.FireSaveEvent();
        }
예제 #8
0
        public void Test_Method6()
        {
            SpreadSheetViewStub stub       = new SpreadSheetViewStub();
            Controller          controller = new Controller(stub);

            stub.FireArrowKeyEvent("up");
            stub.FireArrowKeyEvent("down");
            stub.FireArrowKeyEvent("left");
            stub.FireArrowKeyEvent("right");
        }