Blog.Common.Utils.Tests.Helpers.FileHelperTest.ShouldSuccessfullyDeleteDirectory C# (CSharp) Method

ShouldSuccessfullyDeleteDirectory() private method

private ShouldSuccessfullyDeleteDirectory ( ) : void
return void
        public void ShouldSuccessfullyDeleteDirectory()
        {
            if (!Directory.Exists(_rootPath + @"\TestDir")) Directory.CreateDirectory(_rootPath + @"\TestDir");
            var result = _fileHelper.DeleteDirectory(_rootPath + @"\TestDir");

            Assert.AreEqual(true, result);
            Assert.IsFalse(Directory.Exists(_rootPath + @"\TestDir"));
        }