BlogSharp.Core.Impl.Tests.Services.FileSystem.DirectoryTests.SetUp C# (CSharp) Method

SetUp() private method

private SetUp ( ) : void
return void
        public void SetUp()
        {
            if (System.IO.Directory.Exists("root"))
            {
                System.IO.Directory.Delete("root", true);
            }

            DirectoryInfo dirInfo = System.IO.Directory.CreateDirectory("root");
            _root = dirInfo.FullName;
            DirectoryInfo dirInfo1 = dirInfo.CreateSubdirectory("sub1");
            DirectoryInfo dirInfo2 = dirInfo.CreateSubdirectory("sub2");
            dirInfo1.CreateSubdirectory("sub11");
            dirInfo2.CreateSubdirectory("sub21");
            _fileService = new TransactionalFileService(new CastleProxyFactory());
        }