The first part was to try to repro the ordering behavior of MS which seems to be based on the string length of, first, the domain and, then, the path.
Second part was to fix the .local unit test with Dns.GetHostname as some OS (namely Mac) append a '.local' by default to the hostname.
2009-12-24 Sebastien Pouliot <[email protected]>
* CookieContainerTest.cs: Split many tests into smaller test
cases. Add test cases for DefaultPerDomainCookieLimit and
DefaultCookieLimit. Remove all [Category ("NotWorking")] since
everything works now.
In System.Net:
2009-12-24 Sebastien Pouliot <[email protected]>
* Cookie.cs: Re-work ToString to be useable in more cases. Fix
some issues found by Gendarme.
* CookieContainer.cs: Fix all NonWorking (and new) unit tests.
Implement removing oldest cookies when limits are reached.
* CookieCollection.cs: Move to generics internally. Fix sort to
be closer to MS implementation (but still not 100% identical).
Fix some issues found by Gendarme.
svn path=/trunk/mcs/; revision=148891
* CookieCollection.cs: Seal class for NET_2_1 (SL3)
* CookieContainer.cs: Seal class for NET_2_1 (SL3)
* NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
ICredentialsByHost
svn path=/trunk/mcs/; revision=140055
* CookieContainerTest.cs: the GetCookies test works now.
2007-04-23 Marek Habersack <[email protected]>
* CookieContainer.cs: Sort the collection by the path relevance before returning from
the GetCookies method. Fixes bug #81421.
svn path=/trunk/mcs/; revision=76101
* CookieContainer.cs: adding to a CookieCollection might not increment
the number of items if the cookie is replaced. Now Count works properly.
Fixed an array index exception (typo).
* CookieCollection.cs: also compare the version.
* HttpWebResponse.cs: when we have cookies, add them to the request
container.
* HttpWebRequest.cs: changed last parameter of HttpWebResponse ctor.
svn path=/trunk/mcs/; revision=42411
* CookieCollection.cs: reformatted, fixed Add by adding a new method to
search across the arraylist, as list.IndexOf is not what we want.
svn path=/trunk/mcs/; revision=36908