Example #1
0
        public void TestCloseDisplay()
        {
            SpreadsheetViewStub stub       = new SpreadsheetViewStub();
            Controller          controller = new Controller(stub);

            stub.TestSetContentEvent(0, 1, "45");
            stub.TestClose();
            Assert.IsTrue(stub.CalledCloseWindow);
        }
Example #2
0
        public void TestSetContent1()
        {
            SpreadsheetViewStub stub       = new SpreadsheetViewStub();
            Controller          controller = new Controller(stub);

            stub.TestSetContentEvent(0, 1, "45");
            Assert.AreEqual("45", stub.setCellValue);
            Assert.AreEqual(0, stub.setColumn);
            Assert.AreEqual(1, stub.setRow);
        }