12 references to TestTypes
Shared.Tests (12)
JsonSchemaExporter\JsonSchemaExporterTests.cs (12)
16using 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")] 133JsonNode schema = Options.GetJsonSchemaAsNode(typeof(TestTypes.PocoDisallowingUnmappedMembers)); 157var ex = Assert.Throws<InvalidOperationException>(() => options.GetJsonSchemaAsNode(typeof(TestTypes.SimplePoco))); 167var ex = Assert.Throws<NotSupportedException>(() => options.GetJsonSchemaAsNode(typeof(TestTypes.SimplePoco))); 179protected override JsonSerializerOptions Options => TestTypes.TestTypesContext.Default.Options;