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