Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test style
  • Loading branch information
eiriktsarpalis committed Mar 1, 2022
commit 71a53a12d88a79b43680a99d82ce7080ed9270f8
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ public static void JsonSerializerOptions_Default_IsReadOnly()
var optionsSingleton = JsonSerializerOptions.Default;
Assert.Throws<InvalidOperationException>(() => optionsSingleton.IncludeFields = true);
Assert.Throws<InvalidOperationException>(() => optionsSingleton.Converters.Add(new JsonStringEnumConverter()));
Assert.Throws<InvalidOperationException>(() => JsonSerializerOptions.Default.AddContext<JsonContext>());
Assert.Throws<InvalidOperationException>(() => new JsonContext(JsonSerializerOptions.Default));
Assert.Throws<InvalidOperationException>(() => optionsSingleton.AddContext<JsonContext>());
Assert.Throws<InvalidOperationException>(() => new JsonContext(optionsSingleton));
}

[Fact]
Expand Down