コード例 #1
0
        public void Can_parse_checklist()
        {
            var json      = File.ReadAllText("./Data/checklist.json");
            var checklist = ChecklistFactory.Parse(json);

            ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist);
        }
コード例 #2
0
        public void Can_serialize_then_parse_checklist()
        {
            ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist_);
            string json      = ChecklistFactory.Serialize(checklist_);
            var    checklist = ChecklistFactory.Parse(json);

            ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist);
        }
コード例 #3
0
 public SerializationTests(ITestOutputHelper testOutputHelper)
 {
     testOutputHelper_ = testOutputHelper;
     Console.SetOut(new TestOutputWriter(testOutputHelper_));
     checklist_ = ChecklistTestHelper.BuildChecklist();
 }