9 references to JsonSerializerOptions
Microsoft.JSInterop.Tests (9)
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (9)
23
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
));
37
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
));
52
var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
));
67
var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
));
82
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
)!;
102
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>[]>(json,
JsonSerializerOptions
)!;
123
var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json,
JsonSerializerOptions
)!;
137
var json1 = JsonSerializer.Serialize(dotNetObjectRef,
JsonSerializerOptions
);
138
var json2 = JsonSerializer.Serialize(dotNetObjectRef,
JsonSerializerOptions
);