public void ReturnsMarkdwnArrayFor(SlackTextFields slackTextFields, string expected) { const string path = "attachments[0].mrkdwn_in"; _attachment.MarkdownFields = slackTextFields; var val = Act(path, false); Assert.IsNotNull(val, message: "\"" + path + "\" does not exist in serialized JSON"); var valArray = val.ToObject <List <string> >(); Assert.IsTrue(valArray.Contains(expected)); }
public void ReturnsMarkdwnArrayFor(SlackTextFields slackTextFields, string expected) { const string path = "attachments[0].mrkdwn_in"; _attachment.MarkdownFields = slackTextFields; var val = Act(path,false); Assert.IsNotNull(val, message: "\"" + path + "\" does not exist in serialized JSON"); var valArray = val.ToObject<List<string>>(); Assert.IsTrue(valArray.Contains(expected)); }