private RhetosSignature CreateRhetosSignature(Type conceptInfoType) { var prefix = " "; var signature = ConceptInfoType.SignatureDescription(conceptInfoType); var documentation = $"{prefix}* defined by {conceptInfoType.FullName}"; var xmlDocumentation = xmlDocumentationProvider.GetDocumentation(conceptInfoType, prefix); if (!string.IsNullOrEmpty(xmlDocumentation)) { documentation = $"{xmlDocumentation}\n{documentation}"; } return(new RhetosSignature() { ConceptInfoType = conceptInfoType, Parameters = ConceptInfoType.GetParameters(conceptInfoType), Signature = signature, Documentation = documentation }); }
public void SignatureDescriptions(Type conceptInfoType, string expectedDescription) { var description = ConceptInfoType.SignatureDescription(conceptInfoType); Assert.AreEqual(expectedDescription, description); }