public void ParseResultWithError() { // Arrange var result = ReadAllText("ErrorResult.txt"); // Act parser.BuildResult(result); // Assert }
private ReverseEngineerResult GetOutput() { var path = Path.GetTempFileName() + "json"; File.WriteAllText(path, options.Write()); var launchPath = Path.Combine(Path.GetTempPath(), "efreveng"); var startInfo = new ProcessStartInfo { FileName = Path.Combine(launchPath ?? throw new InvalidOperationException(), GetExeName()), Arguments = "\"" + path + "\"", }; var standardOutput = RunProcess(startInfo); return(resultDeserializer.BuildResult(standardOutput)); }
public ReverseEngineerResult GetOutput() { var path = Path.GetTempFileName() + "json"; File.WriteAllText(path, options.Write()); var launchPath = Path.Combine(Path.GetTempPath(), "efreveng"); var startInfo = new ProcessStartInfo { FileName = Path.Combine(launchPath ?? throw new InvalidOperationException(), GetExeName()), Arguments = "\"" + path + "\"", UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true, CreateNoWindow = true }; var standardOutput = RunProcess(startInfo); return(resultDeserializer.BuildResult(standardOutput)); }