Skip to content

Commit

Permalink
test(Download): create download directory before fallback file
Browse files Browse the repository at this point in the history
  • Loading branch information
cengelha committed Jul 17, 2024
1 parent b18c790 commit bde1d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libNOM.test/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde1d3c

Please sign in to comment.