Ejemplo n.º 1
0
        public void Test_DeleteIf_When_Condition_Satifies()
        {
            //arrange
            string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test5");

            Directory.CreateDirectory(path);

            //act
            Dir.DeleteIf(path, () => true);

            //assert
            Assert.IsTrue(!Directory.Exists(path));
        }