Class AiPromptTemplateCatalogTests
Drift guard for the shipped prompt templates: every name KnownTemplateNames
claims to ship must exist on disk under Assets/Serenity/Documentation/PromptTemplates, and every
{{TOKEN}} found inside a template must be declared in Serenity.AiPromptBuilder.Tests.Editor.AiPromptTemplateCatalogTests.TokenContract — an
undeclared token means the template and the C# producing its values fell out of sync.
Inheritance
AiPromptTemplateCatalogTests
Assembly: Serenity.AiPromptBuilder.Tests.Editor.dll
Syntax
public class AiPromptTemplateCatalogTests
Constructors
AiPromptTemplateCatalogTests()
Declaration
public AiPromptTemplateCatalogTests()
Methods
KnownTemplateNames_MatchesDeclaredTokenContract()
Declaration
public void KnownTemplateNames_MatchesDeclaredTokenContract()
KnownTemplate_EveryTokenIsDeclaredInContract(string)
Declaration
public void KnownTemplate_EveryTokenIsDeclaredInContract(string templateName)
Parameters
| Type |
Name |
Description |
| string |
templateName |
|
KnownTemplate_FileExistsOnDisk(string)
Declaration
public void KnownTemplate_FileExistsOnDisk(string templateName)
Parameters
| Type |
Name |
Description |
| string |
templateName |
|