public void GetSubConceptsTest(string cnl, bool direct, string[] asserts) { var cnlSentences = new List <string>() { "Every location-form is a form.", "Every data-location-form is a location-form.", "Every data-location-form[sfo] is a location-form.", "Data-Location-Form is a data-location-form.", "Data-Location-Form is a data-location-form[sfo].", "Data-Location-Form[sfo] is a data-location-form.", "References: [sfo] 'http://sfo.com' ('http://sfo.com') ." }; var feClient = new CogniPySvr(); feClient.LoadCnlFromString(string.Join("\r\n", cnlSentences), true, true); var subconcepts = feClient.GetSubConceptsOf(cnl, direct); if (asserts.Count() == 0) { CollectionAssert.IsEmpty(subconcepts); } else { CollectionAssert.IsNotEmpty(subconcepts); CollectionAssert.AreEquivalent(asserts, subconcepts); } }