public void MoveTo() { string tempFile = Path.GetTempFileName(); string tempFile2 = Path.GetFileNameWithoutExtension(tempFile) + "Copy" + Path.GetExtension(tempFile); ExtendedFileInfo efi = new ExtendedFileInfo(tempFile); efi.MoveTo(tempFile2); Assert.IsTrue(File.Exists(tempFile2)); }