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