示例#1
0
        public void TestCloseWindow()
        {
            SpreadsheetViewStub stub       = new SpreadsheetViewStub();
            Controller          controller = new Controller(stub);

            stub.TestClose();
            Assert.IsTrue(stub.CalledCloseWindow);
        }
示例#2
0
        public void TestCloseDisplay()
        {
            SpreadsheetViewStub stub       = new SpreadsheetViewStub();
            Controller          controller = new Controller(stub);

            stub.TestSetContentEvent(0, 1, "45");
            stub.TestClose();
            Assert.IsTrue(stub.CalledCloseWindow);
        }