예제 #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);
        }
예제 #2
0
 public Solution1()
 {
     this.input  = this.LoadJSON();
     this.output = new JsonOutputObject();
 }