diff --git a/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs b/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs index c9e332022..f0a559698 100644 --- a/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs +++ b/source/Nuke.Utilities.Tests/IO/MoveCopyTest.cs @@ -63,6 +63,8 @@ public void TestMoveFile() source1.Move(target, policy: ExistsPolicy.FileSkip).Should().Be(source1); source1.Move(target, policy: ExistsPolicy.FileOverwriteIfNewer).Should().Be(source1); + + source3.TouchFile(); source3.Move(target, policy: ExistsPolicy.FileOverwriteIfNewer).Should().Be(target); }