public void SignatureDescriptions(string conceptTypeName, string expectedDescription) { var rhetosProjectContext = serviceProvider.GetRequiredService <RhetosProjectContext>(); var conceptType = rhetosProjectContext.DslSyntax.ConceptTypes.Single(a => a.TypeName == conceptTypeName); var description = ConceptTypeTools.SignatureDescription(conceptType); Assert.AreEqual(expectedDescription, description); }
private RhetosSignature CreateRhetosSignature(ConceptType conceptType) { var prefix = " "; var signature = ConceptTypeTools.SignatureDescription(conceptType); var documentation = $"{prefix}* defined by {conceptType.AssemblyQualifiedName}"; var xmlDocumentation = GetDocumentation(conceptType, prefix); if (!string.IsNullOrEmpty(xmlDocumentation)) { documentation = $"{xmlDocumentation}\n{documentation}"; } return(new RhetosSignature() { ConceptType = conceptType, Parameters = ConceptTypeTools.GetParameters(conceptType), Signature = signature, Documentation = documentation }); }