From 6eb779618e22b0cdf1fa27538b305f750b698d88 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 31 Mar 2024 04:45:21 +0200 Subject: [PATCH] fix --- source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs b/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs index f0a559698..85f1c74b2 100644 --- a/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs +++ b/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs @@ -45,12 +45,9 @@ public void TestCopyFile() [Fact] public void TestMoveFile() { - var source1 = TestTempDirectory / "source1.txt"; - var source2 = TestTempDirectory / "source2.txt"; - var source3 = TestTempDirectory / "source3.txt"; - source1.WriteAllText(nameof(source1)); - source2.WriteAllText(nameof(source2)); - source3.WriteAllText(nameof(source3)); + var source1 = (TestTempDirectory / "source1.txt").TouchFile(); + var source2 = (TestTempDirectory / "source2.txt").TouchFile(); + var source3 = (TestTempDirectory / "source3.txt").TouchFile(); var target = TestTempDirectory / "target.txt"; source2.Move(target);