diff --git a/libNOM.test/Download.cs b/libNOM.test/Download.cs index 4eef801..1ab7fb3 100644 --- a/libNOM.test/Download.cs +++ b/libNOM.test/Download.cs @@ -14,10 +14,10 @@ public void Download() // Arrange var content = Properties.Resources.mapping_46504_download; // version altered to 9.99.0.9 var initialVersion = Mapping.Version; - var path = "download/mapping.json"; // Act - File.WriteAllBytes(path, content); // fake existing file to test workflow independent of download result + Directory.CreateDirectory("download"); + File.WriteAllBytes("download/mapping.json", content); // fake existing file as fallback to test workflow even if download itself fails Mapping.Update(); // Assert