14 references to JsonSerializerOptions
Microsoft.JSInterop.Tests (14)
Infrastructure\ByteArrayJsonConverterTest.cs (14)
25var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
38var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
51var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
64var ex = Record.Exception(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
76var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!;
89var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
105var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!;
121var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
137var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
153var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
169var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions));
188var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!;
210var deserialized = JsonSerializer.Deserialize<byte[][]>(json, JsonSerializerOptions)!;
226var json = JsonSerializer.Serialize(byteArray, JsonSerializerOptions);