Beispiel #1
0
        public void DelRestoreFolderTest()
        {
            const string dir = @"C:\Temp\Fonts\";

            RecycleBin.DeleteToRecycleBin(dir);
            Assert.That(RecycleBin.Count, Is.GreaterThan(0L));
            TestContext.WriteLine($"cnt={RecycleBin.Count}; sz={RecycleBin.Size}");
            RecycleBin.RestoreAll();
            Assert.That(RecycleBin.Count, Is.EqualTo(0L));
            Assert.IsTrue(Directory.Exists(dir));
        }