public void CreateTheFolder_WhenItDoesNotExists() { // Arrange DirectoryInfo parentFolder = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Pst Backup")); if (parentFolder.Exists) { parentFolder.Delete(true); parentFolder.Refresh(); Assert.IsFalse(parentFolder.Exists); } DirectoryInfo tempFolder; // Act tempFolder = new DirectoryInfo(SUT.GetTemporaryFolder()); // Assert Assert.IsTrue(tempFolder.Exists); }