Skip to content

Commit f4bdbe4

Browse files
Copilotjaviercn
andcommitted
Fix TypeJsonConverterTest: correct JSON string format in test
Co-authored-by: javiercn <6995051+javiercn@users.noreply.github.com>
1 parent c4d1ab2 commit f4bdbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSInterop/Microsoft.JSInterop/test/Infrastructure/TypeJsonConverterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void Read_ThrowsInvalidOperationException_IfTypeCannotBeFound()
136136
public void Read_ThrowsJsonException_IfJsonIsNotStartObject()
137137
{
138138
// Arrange
139-
var json = """"invalid"""";
139+
var json = "\"invalid\"";
140140

141141
// Act & Assert
142142
var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<Type>(json, _jsonSerializerOptions));

0 commit comments

Comments
 (0)