コード例 #1
0
        public void TestMethod12()
        {
            SpreadsheetApplicationContext.GetContext().IsUnitTest = true; // Prevents it from trying to create a Window.
            Controller controller = new Controller(this);

            CellValueBoxTextChange.Invoke("=((");

            Assert.AreEqual(string.Empty, controller.SelectedCell.GetCellContents(controller.Spreadsheet));
        }
コード例 #2
0
        public void TestMethod3()
        {
            Controller  controller = new Controller(this);
            Spreadsheet s          = new Spreadsheet();

            controller.ChangeSpreadsheet(s);
            CellValueBoxTextChange.Invoke("=1+1");

            Assert.AreEqual("2", controller.SelectedCell.GetCellValue(s));
        }