Comparing Json strings in unit tests
There are a couple ways to verify if 2 Json strings are equivalent. Using DeepEquals on JObject There’s a static function DeepEquals on JObject which compares the values of 2 tokens and all their descendant tokens. We can parse the Json strings into JObject and then use this function to compare them. Using FluentAssertions Another … [Read more…]