public void Stringify() { Connection connection = DiskFolder.String("c:\\proj"); Assert.AreEqual( "Type=Shopless.IO.DiskFolder, Shopless.Disk;Path=c:\\proj", $"{connection}"); }
public void Manage_Files() { var folder = new DiskFolder(); folder.Delete("test.txt"); Assert.IsFalse(folder.Contains("test.txt")); folder.Write("test.txt").Dispose(); folder.Read("test.txt").Dispose(); Assert.IsTrue(folder.Contains("test.txt")); folder.Delete("test.txt"); Assert.IsFalse(folder.Contains("test.txt")); }