public void FileManagerUseTimeLogsFolderSetting() { ITimeLogsFolderSettingSource settings = NewMock<ITimeLogsFolderSettingSource>(); Stub.On(settings).GetProperty("TimeLogsFolder").Will(Return.Value(@"c:\myworkingfolder")); FileManager fileManagerWithSettings = new FileManager(settings); Assert.AreEqual(@"c:\myworkingfolder", fileManagerWithSettings.TimeLogsFolder); }
public void SetUp() { fileManager = new FileManager(); }
public void FileManagerUpdatesReferenceInTimeLogsManager() { var fileManager = new FileManager(); driver.FileManager = fileManager; Assert.AreSame(fileManager, driver.TimeLogsManager.FileManager); }