public void TestSetup() { _parentForm = new Form(); _mockedLiftBridgeView = new MockedLiftBridgeView(); _mockedStartupNewView = new MockedStartupNewView(); _mockedExistingSystem = new MockedExistingSystem(); _mockedGetSharedProject = new MockedGetSharedProject(); _liftBridgeController = new LiftBridgeController(_mockedLiftBridgeView, _mockedStartupNewView, _mockedExistingSystem, _mockedGetSharedProject); }
public void TearDown() { if (_pathToProject != null && Directory.Exists(_pathToProject)) { Directory.Delete(_pathToProject, true); } _pathToProject = null; _mockedLiftBridgeView.Dispose(); _parentForm.Dispose(); _mockedLiftBridgeView = null; _mockedStartupNewView = null; _mockedExistingSystem = null; _parentForm = null; _liftBridgeController = null; }