Added tests which guard the JSON of providers, the runtime, and services before source generation

This commit is contained in:
Thorsten Sommer committed 2026-11-02 18:42:28 +01:00
1 parent e954881fda
commit 9e5aee766c
31 files changed
+577 -93

No files matched your search

@@ -0,0 +1,15 @@
using System.Text.Json;
namespace AIStudio.Tests.Serialization;
/// <summary>
/// A request in the fixtures, together with how AI Studio builds it and the options it writes it with.
/// </summary>
/// <param name="FileName">The name of the file in the folder Fixtures next to the tests, which holds the request as it got sent before.</param>
/// <param name="Create">Builds the request the way AI Studio does.</param>
/// <param name="Options">The options AI Studio writes the request with.</param>
public sealed record JsonGoldenRequest(string FileName, Func<object> Create, JsonSerializerOptions Options)
{
/// <inheritdoc />
public override string ToString() => this.FileName;
}