Skip to content

Commit deda018

Browse files
committed
Fixed tests.
1 parent 54fe7cf commit deda018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityModStudio.RimWorld.ProjectWizard.Tests/RimWorldFileGeneratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void WhenUpdateMetadataInvokedWithHarmony_KeepHarmonyReference()
5454
public void WhenUpdatePreviewImageInvoked_DrawModName()
5555
{
5656
var newImagePath = Path.GetTempFileName();
57-
File.Replace(@"TestFiles\Preview_Initial.png", newImagePath, null);
57+
File.Copy(@"TestFiles\Preview_Initial.png", newImagePath, true);
5858

5959
RimWorldFileGenerator.UpdatePreviewImage(newImagePath, "My Awesome Mod");
6060

0 commit comments

Comments
 (0)