xamarin-macios/tests/monotouch-test/System.Net.Http
Rolf Bjarne Kvinge e19fd5ba00
[monotouch-test] Improve MessageHandlerTest.TestNSUrlSessionHandlerCookies. (#7542)
1. Instead of fetching the managed response's cookies twice, and then
   comparing them to themselves, fetch the managed response's cookies once and
   then the native response's cookies once, and compare that. This way the
   test does what it's actually supposed to do!
2. Don't pass if we fail to get the managed response's cookies.
3. Improve assertions to verify the actual cookie content as well.
4. Improve diagnostics if an exception was thrown by checking for the
   exception first instead of failing due to something else being different
   (since the underlying cause of the difference is the exception, that's what
   will have the most information about the failure).
5. Use httpbin.org instead of microsoft.com, since microsoft.com does UA
   sniffing and returns different results between the http handlers :/
2019-12-04 23:26:31 +01:00
..
MessageHandlers.cs [monotouch-test] Improve MessageHandlerTest.TestNSUrlSessionHandlerCookies. (#7542) 2019-12-04 23:26:31 +01:00
NetworkResources.cs [monotouch-test] Improve MessageHandlerTest.TestNSUrlSessionHandlerCookies. (#7542) 2019-12-04 23:26:31 +01:00