Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Solution2()
 {
     this.input  = this.LoadJSON();
     this.output = new JsonOutputObject();
 }