public void SingleNodeDialogueParseCorrectly() { string testJson = "{\"dialogue_id\":\"id\",\"id\" : 0, \"invitation\" : \"test\" , \"answers\" : [{\"message\":\"test message\"}]}"; var expectedDialogue = new DialogueGraph(); expectedDialogue.addNode(0, new DialogueNode( "test", new[] { new DialogueAnswer("test message", 0) } )); var realDialogue = DialogueParser.Parse(testJson); Assert.AreEqual(expectedDialogue, realDialogue); }