public void File_Copy() { const string contents = "test"; var fn = GetNewFileNameOnTempPath(".txt"); var fnInfo = FileSystem.FileFromPath(fn); System.IO.File.WriteAllText(fn, contents); Assert.IsTrue(System.IO.File.Exists(fn)); var dest = GetNewFileNameOnTempPath(".txt"); var destInfo = FileSystem.FileFromPath(dest); Assert.IsTrue(FileSystem.CopyFile(fnInfo, dest)); Assert.IsTrue(System.IO.File.Exists(dest)); Assert.IsTrue(System.IO.File.Exists(fn)); Assert.AreEqual(contents, FileSystem.ReadText(fnInfo)); Assert.AreEqual(contents, FileSystem.ReadText(destInfo)); }