Beispiel #1
0
        public void TestSetCell()
        {
            SpreadsheetViewStub stub       = new SpreadsheetViewStub();
            Controller          controller = new Controller(stub);

            stub.SetCell(3, 4, "10");

            Assert.IsTrue(stub.CalledSetCell);
            Assert.AreEqual(stub.Col, 3);
            Assert.AreEqual(stub.Row, 4);
            Assert.AreEqual(stub.CellContent, "10");
        }