public void Can_parse_checklist() { var json = File.ReadAllText("./Data/checklist.json"); var checklist = ChecklistFactory.Parse(json); ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist); }
public void Can_serialize_then_parse_checklist() { ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist_); string json = ChecklistFactory.Serialize(checklist_); var checklist = ChecklistFactory.Parse(json); ChecklistTestHelper.ChecklistTreeStructureShouldBeConsistent(checklist); }
public SerializationTests(ITestOutputHelper testOutputHelper) { testOutputHelper_ = testOutputHelper; Console.SetOut(new TestOutputWriter(testOutputHelper_)); checklist_ = ChecklistTestHelper.BuildChecklist(); }