public void DoesLastSettingsExist_SettingsDontExist_ReturnFalse() { using (ShimsContext.Create()) { ShimFilePath(); IUserContext userContext; Boolean doesLastSettingsExist; // Arrange userContext = GetTestUserContext(); // Act MySettingsManager.DeleteLastSettingsFile(userContext); doesLastSettingsExist = MySettingsManager.DoesLastSettingsExist(userContext); // Assert Assert.IsFalse(doesLastSettingsExist); } }
public void GetLastSettingsSaveTime_LastSettingsDontExists_ReturnNull() { using (ShimsContext.Create()) { ShimFilePath(); IUserContext userContext; DateTime? lastSettingsSaveTime; // Arrange userContext = GetTestUserContext(); // Act MySettingsManager.DeleteLastSettingsFile(userContext); lastSettingsSaveTime = MySettingsManager.GetLastSettingsSaveTime(userContext); // Assert Assert.IsNull(lastSettingsSaveTime); } }