public ValueTask ExecuteAsync(IConsole console) { EVE.Unpack(FilePath); console.Output.WriteLine("Complete!"); return(default);
public void IndenticalThroughUnpackPack(string eventFileName) { string eventFile = Path.Combine(TestConstants.TestModFolder, "event", eventFileName); string tempDir = Path.Combine(TestTempFolder, "unpacked"); if (Directory.Exists(tempDir)) { Directory.Delete(tempDir, true); } Directory.CreateDirectory(tempDir); EVE.Unpack(eventFile, tempDir); string tempFile = Path.Combine(TestTempFolder, "packed.eve"); EVE.Pack(tempDir, tempFile); var expectedBytes = File.ReadAllBytes(eventFile); var actualBytes = File.ReadAllBytes(tempFile); actualBytes.Should().Equal(expectedBytes); }