Extensibility issues and unit testing support of custom converters #1515
-
To support verification of our own datatype responses I wrote some custom converters (inheriting WriteOnlyJsonConverter<>). To test them I could write some tests using verify, but in this case I wanted to test only parts of the serialization plus to avoid any file operations overhead. My conclusions are that its impossible (?) since a the internals of Verify are so tightly integrated, here are some of the approaches i tried and impediments i came across:
Improvement suggestions
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
this is in 30.8.0 https://github.com/VerifyTests/Verify/blob/main/docs/serializer-settings.md#testing-jsonconverters thoughts? |
Beta Was this translation helpful? Give feedback.
-
That was quick! These changes seems to solve my issue 👍 |
Beta Was this translation helpful? Give feedback.
this is in 30.8.0 https://github.com/VerifyTests/Verify/blob/main/docs/serializer-settings.md#testing-jsonconverters
thoughts?