Blog.Common.Utils.Tests.Helpers.ImageHelperTest.TestInit C# (CSharp) Method

TestInit() private method

private TestInit ( ) : void
return void
        public void TestInit()
        {
            _imageHelper = new ImageHelper();
            _rootPath = Path.GetDirectoryName(Uri.UnescapeDataString(new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));

            if (Directory.Exists(_rootPath + @"\TestImages\New")) Directory.Delete(_rootPath + @"\TestImages\New", true);
            if (Directory.Exists(_rootPath + @"\TestImages\SaveImage")) Directory.Delete(_rootPath + @"\TestImages\SaveImage", true);
            if (Directory.Exists(_rootPath + @"\TestImages\SaveBytes")) Directory.Delete(_rootPath + @"\TestImages\SaveBytes", true);
            if (Directory.Exists(_rootPath + @"\TestImages\DirJpg")) Directory.Delete(_rootPath + @"\TestImages\DirJpg", true);
            if (Directory.Exists(_rootPath + @"\TestImages\DirGif")) Directory.Delete(_rootPath + @"\TestImages\DirGif", true);
            if (Directory.Exists(_rootPath + @"\TestImages\DirVid")) Directory.Delete(_rootPath + @"\TestImages\DirVid", true);
        }