public JsonOutputObject LoadActualOutput() { JsonOutputObject expectedOutput = new JsonOutputObject(); string s = AppDomain.CurrentDomain.BaseDirectory; string path = Path.Combine(s, "results", this.level, "output.json"); using (StreamReader r = new StreamReader(path)) { string json = r.ReadToEnd(); expectedOutput = JsonConvert.DeserializeObject <JsonOutputObject>(json); } return(expectedOutput); }
public Solution3() { this.input = this.LoadJSON(); this.output = new JsonOutputObject(); }