Batman.Core.Tests.FileSystem.LocalTest.FileMoveToTest C# (CSharp) 메소드

FileMoveToTest() 개인적인 메소드

private FileMoveToTest ( ) : void
리턴 void
        public void FileMoveToTest()
        {
            var Manager = new FileManager();
            IFile TempObject = Manager.File("~/Data/Test/Data.txt");
            TempObject.Write("This is a test");
            IDirectory NewParent = Manager.Directory("~/Data2/");
            NewParent.Create();
            TempObject.MoveTo(NewParent);
            Assert.Equal(NewParent.FullName + "Data.txt", TempObject.FullName);
            TempObject.Delete();
        }