public void TestCreateFromText() { string filepath = GetTestFilepath(@"template-report01.json"); string str = File.ReadAllText(filepath); List <TemplatePack> result = TemplatePack.CreateFromText(str); Assert.NotNull(result); Assert.True(result.Count > 0); }
public List <TemplatePack> GetTemplatePacks() { var text = GetTemplateJsonFileContents(); return(TemplatePack.CreateFromText(text)); }