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);
            }
        }
        // This test expects that it can write to "C:\Temp\myTempFile.txt".
        public void DoesLastSettingsExist_SettingsExists_ReturnTrue()
        {
            using (ShimsContext.Create())
            {
                ShimFilePath();
                IUserContext userContext;
                Boolean      doesLastSettingsExist;
                AnalysisPortal.MySettings.MySettings mySettings;

                // Arrange
                userContext = GetTestUserContext();
                mySettings  = CreateMySettingsObjectWithTaxonFilter(1, 2, 5);

                // Act
                MySettingsManager.SaveLastSettings(userContext, mySettings);
                doesLastSettingsExist = MySettingsManager.DoesLastSettingsExist(userContext);

                // Assert
                Assert.IsTrue(doesLastSettingsExist);
            }
        }