public void ShouldBeAbleToGetJsonFromJsonFile() { var att = new HandlebarsHelperSpecificationAttribute("_samples/simple_files/Merge1_rest.json", "osef", "osef"); var json = att.GetJsonDocument(); JToken.Parse(json); }
public void ShouldBeAbleToGetJsonTheAttributeItSelf() { var att = new HandlebarsHelperSpecificationAttribute("{}", "osef", "osef"); var json = att.GetJsonDocument(); json.ShouldBe("{}"); var token = JToken.Parse(json); token.Type.ShouldBe(JTokenType.Object); }