Repository navigation
fix(66900): Adding test for confirm bug fix. - #87167
eiriktsarpalis merged 1 commit into
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsCurrent PR simply adding test for confirm that my previous PR also make fixes for #66900
|
There was a problem hiding this comment.
Could you
- Update the assertion to validate the content of the output.
- Validate that it deserializes back to the expected value?
c2fbafa to
2d20edd
Compare
There was a problem hiding this comment.
I thought I had left this feedback earlier, but I don't see it now. I don't believe this is the appropriate test suite for this type of test. Could you please move it to PropertyVisibilityTests.cs? Thanks
2d20edd to
a9ca71c
Compare
There was a problem hiding this comment.
The test should run the same for both reflection and the source generator. Would it be possible to move the test to the base PropertyVisibilityTests class? Note that this would additionally require the following two changes:
- Replace any direct calls to
JsonSerializer.Serialize/Deserializewith theSerializer.SerializeWrappertest abstraction. - For the case of the source generator, add the test classes to the relevant JsonSerializerContext declaration.
Thanks!
fd54759 to
c49cef7
Compare
6e3f009 to
68a426e
Compare
|
Test failures are due to #87680 and unrelated to this change. |
Current PR simply adding test for confirm that my previous PR also make fixes for #66900