Batman.Core.Tests.FileSystem.LocalTest.DirectoryRenameTest C# (CSharp) Метод

DirectoryRenameTest() приватный Метод

private DirectoryRenameTest ( ) : void
Результат void
        public void DirectoryRenameTest()
        {
            var Manager = new FileManager();
            IDirectory TempObject = Manager.Directory("~/Data/Test");
            TempObject.Create();
            string DirectoryPath = TempObject.Parent.FullName;
            TempObject.Rename("Test2");
            Assert.Equal(DirectoryPath + "\\Test2", TempObject.FullName);
            TempObject.Delete();
        }