public void WindowsDirectoryProperties() { String dirName = Global.RandomDirectory; String path = Path.Combine(Global.WindowsWorkingPath, $"{dirName}\\"); Console.WriteLine(path); ZephyrDirectory dir = new WindowsZephyrDirectory(path); dir.Create(); Console.WriteLine($"FullName : {dir.FullName}"); Assert.AreEqual(dir.FullName, path); Console.WriteLine($"Name : {dir.Name}"); Assert.AreEqual(dir.Name, dirName); Console.WriteLine($"Parent : {dir.Parent}"); Assert.AreEqual(dir.Parent, Global.WindowsWorkingPath); Console.WriteLine($"Root : {dir.Root}"); Assert.AreEqual(dir.Root, Directory.GetDirectoryRoot(Global.WindowsWorkingPath)); Console.WriteLine($"Exists : {dir.Exists}"); Assert.That(dir.Exists); dir.Delete(); }
public void WindowsDirectoryDelete() { String path = Path.Combine(Global.WindowsWorkingPath, $"{Global.RandomDirectory}\\"); Console.WriteLine(path); ZephyrDirectory dir = new WindowsZephyrDirectory(path); dir.Create(); dir.Delete(); Assert.That(!Utilities.Exists(path, Global.Clients)); }