public void CheckDirectoryExistsCreateDirectory_TestDirectoryExistsOrIsCreated() { // Assign var dirPath1 = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); // Act var dirPath = DirectoryFileOperations.CheckDirectoryExistsCreateDirectory(dirPath1); // Assert Assert.IsTrue(Directory.Exists(dirPath)); }
public void CheckDirectoryExistsCreateDirectory_TestDirectoryExistsOrIsCreated() { // Assign var dirPath1 = SpellingPropertiesClass.AppDataDirectoryPath; // Act var dirPath = DirectoryFileOperations.CheckDirectoryExistsCreateDirectory(dirPath1); // Assert Assert.IsTrue(Directory.Exists(dirPath)); }
public void CheckDirectoryExistsCreateDirectory_TestDirectoryExistsOrIsCreated() { // Assign SpellingPropertiesClass.AppDataDirectoryPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); var dirPath1 = SpellingPropertiesClass.AppDataDirectoryPath; // Act var dirPath = DirectoryFileOperations.CheckDirectoryExistsCreateDirectory(dirPath1); // Assert Assert.IsTrue(Directory.Exists(dirPath)); }