12 references to TestTypes
Shared.Tests (12)
JsonSchemaExporter\JsonSchemaExporterTests.cs (12)
16
using static Microsoft.Extensions.AI.JsonSchemaExporter.
TestTypes
;
27
[MemberData(nameof(
TestTypes
.GetTestData), MemberType = typeof(
TestTypes
))]
39
[MemberData(nameof(
TestTypes
.GetTestDataUsingAllValues), MemberType = typeof(
TestTypes
))]
55
[InlineData(typeof(
TestTypes
.SimplePoco), "object")]
70
[InlineData(typeof(
TestTypes
.StructDictionary<string, int>), "object")]
71
[InlineData(typeof(
TestTypes
.SimpleRecordStruct), "object")]
133
JsonNode schema = Options.GetJsonSchemaAsNode(typeof(
TestTypes
.PocoDisallowingUnmappedMembers));
157
var ex = Assert.Throws<InvalidOperationException>(() => options.GetJsonSchemaAsNode(typeof(
TestTypes
.SimplePoco)));
167
var ex = Assert.Throws<NotSupportedException>(() => options.GetJsonSchemaAsNode(typeof(
TestTypes
.SimplePoco)));
179
protected override JsonSerializerOptions Options =>
TestTypes
.TestTypesContext.Default.Options;