SIL.Core.Tests/IO/FileUtilsTests.cs
/// <summary>
/// regression for WS-1394. Must be run manually because it requires a second drive
/// </summary>
regression for WS-1394. Must be run manually because it requires a second drive
regression for WS - 1394 . Must be run manually because it requires a second drive
[Test, Ignore("Must be run manually with another drive")]
		public void MANUAL_ReplaceFileWithUserInteractionIfNeeded_DifferentDrives_OK()
		{
			ErrorReport.IsOkToInteractWithUser = false;
			using (var source = new TempFile("one"))
			using (var backup = new TempFile("two"))
			{
				var drives = UsbDriveInfo.GetDrives();
				Assert.Greater(drives.Count, 0, "This test requires at least one writeable USB drive");
				var testFolder = Path.Combine(drives[0].RootDirectory.FullName, "PalasoFileUtilsUnitTests");
				Directory.CreateDirectory(testFolder);
				using (var folder = TemporaryFolder.TrackExisting(testFolder))
				using (var destination = new TempFileFromFolder(folder))
				{
					FileUtils.ReplaceFileWithUserInteractionIfNeeded(source.Path, destination.Path, backup.Path);
				}
			}
		}
[ Test , Ignore ( " " ) ] public void MANUAL_ReplaceFileWithUserInteractionIfNeeded_DifferentDrives_OK ( ) { ErrorReport . IsOkToInteractWithUser = false ; using ( var source = new TempFile ( " " ) ) using ( var backup = new TempFile ( " " ) ) { var drives = UsbDriveInfo . GetDrives ( ) ; Assert . Greater ( drives . Count , 0 , " " ) ; var testFolder = Path . Combine ( drives [ 0 ] . RootDirectory . FullName , " " ) ; Directory . CreateDirectory ( testFolder ) ; using ( var folder = TemporaryFolder . TrackExisting ( testFolder ) ) using ( var destination = new TempFileFromFolder ( folder ) ) { FileUtils . ReplaceFileWithUserInteractionIfNeeded ( source . Path , destination . Path , backup . Path ) ; } } }
regression for WS-1394.
regression for WS - 1394 .