You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I found this to be extremely flaky: whitespaces are a little problematic, some some integer values in expected.yaml are written in hexadecimal and some other in decimal and the serializer outputs everything to decimal, etc.
Is there any recommended way to get the in memory representation of expected.yaml and the output of serialization, so I compare that instead of comparing the text?
The text was updated successfully, but these errors were encountered:
I would suggest that you create an implementation of IEmitter that stores all the emitted events into a list and then serialize to an instance of that emitter. You will be able to make assertions against the event stream instead of having to compare text.
Hi
I want to write some tests for serialization, my first naive approach is similar to the following code:
But I found this to be extremely flaky: whitespaces are a little problematic, some some integer values in
expected.yaml
are written in hexadecimal and some other in decimal and the serializer outputs everything to decimal, etc.Is there any recommended way to get the in memory representation of
expected.yaml
and the output of serialization, so I compare that instead of comparing the text?The text was updated successfully, but these errors were encountered: