コード例 #1
0
        public void Stringify()
        {
            Connection connection = DiskFolder.String("c:\\proj");

            Assert.AreEqual(
                "Type=Shopless.IO.DiskFolder, Shopless.Disk;Path=c:\\proj",
                $"{connection}");
        }
コード例 #2
0
        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"));
        }