35 references to AIFunctionFactoryTest
Microsoft.Extensions.AI.Tests (35)
Functions\AIFunctionFactoryTest.cs (3)
37
Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(
AIFunctionFactoryTest
).GetMethod(nameof(InvalidArguments_Throw))!, (object?)null));
39
AIFunctionFactory.Create(typeof(
AIFunctionFactoryTest
).GetMethod(nameof(InvalidArguments_Throw))!, (Func<AIFunctionArguments, object>)null!));
1659
typeof(
AIFunctionFactoryTest
).Module);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.B.g.cs (12)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B>? _B;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B> B
24
get => _B ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B> Create_B(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B>
33
ObjectCreator = () => new global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B>(options, objectInfo);
58
private void BSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (2)
26
public static global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.JsonContext Default { get; } = new global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.JsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (2)
24
if (type == typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.B))
28
if (type == typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.StructWithDefaultCtor.g.cs (16)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor>? _StructWithDefaultCtor;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor> StructWithDefaultCtor
24
get => _StructWithDefaultCtor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor> Create_StructWithDefaultCtor(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor>
33
ObjectCreator = () => new global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor(),
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor),
60
Getter = static obj => ((global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor)obj).Value,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
78
private void StructWithDefaultCtorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor value)
82
writer.WriteNumber(PropName_Value, ((global::Microsoft.Extensions.AI.
AIFunctionFactoryTest
.StructWithDefaultCtor)value).Value);