public void Directory_Copy() { var tmpSrc = GetNewFileNameOnTempPath(""); var tmpSrcInfo = FileSystem.DirectoryFromPath(tmpSrc); const string fileName = @"temp.txt"; FileSystem.WriteText(FileSystem.CombinePath(tmpSrc, fileName), "test"); var tmpDest = GetNewFileNameOnTempPath(""); FileSystem.CopyDirectory(tmpSrcInfo, tmpDest); Assert.IsTrue(FileSystem.DirectoryExists(tmpSrc)); Assert.IsTrue(FileSystem.DirectoryExists(tmpDest)); var destFileName = FileSystem.CombinePath(tmpDest, fileName); Assert.IsTrue(FileSystem.FileExists(destFileName)); Assert.AreEqual("test", FileSystem.ReadText(FileSystem.FileFromPath(destFileName))); }