mirror of https://github.com/dahall/Vanara.git
24 lines
432 B
C#
24 lines
432 B
C#
|
using NUnit.Framework;
|
|||
|
using System.IO;
|
|||
|
|
|||
|
namespace Vanara.IO.Tests
|
|||
|
{
|
|||
|
partial class BackgroundCopyTests
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void CopyTest()
|
|||
|
{
|
|||
|
using var tempRoot = new TemporaryDirectory();
|
|||
|
|
|||
|
var srcFile = tempRoot.CreateFile().FullName;
|
|||
|
|
|||
|
var dstFile = tempRoot.RandomTxtFileFullPath;
|
|||
|
|
|||
|
|
|||
|
Assert.That(() => BackgroundCopyManager.Copy(srcFile, dstFile), Throws.Nothing);
|
|||
|
|
|||
|
Assert.That(File.Exists(dstFile));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|