Skip to content

Commit

Permalink
2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Browse files Browse the repository at this point in the history
	* HttpResponseTest.cs: added tests for CacheControl that set it to null
	and string.Empty.


svn path=/trunk/mcs/; revision=58394
  • Loading branch information
gonzalop committed Mar 23, 2006
1 parent c6ab8d6 commit 8cac824
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mcs/class/System.Web/Test/System.Web/ChangeLog
@@ -1,3 +1,8 @@
2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpResponseTest.cs: added tests for CacheControl that set it to null
and string.Empty.

2006-03-10 Chris Toshok <toshok@ximian.com>

* StaticSiteMapProviderTest.cs: new tests.
Expand Down
6 changes: 6 additions & 0 deletions mcs/class/System.Web/Test/System.Web/HttpResponseTest.cs
Expand Up @@ -337,6 +337,12 @@ public void CacheControl ()

c.Response.CacheControl = "no-cache";
Assert.AreEqual ("no-cache", c.Response.CacheControl, "D4");

c.Response.CacheControl = null;
Assert.AreEqual ("private", c.Response.CacheControl, "D5");

c.Response.CacheControl = "";
Assert.AreEqual ("private", c.Response.CacheControl, "D6");
}

//[Test][ExpectedException (typeof (HttpException))]
Expand Down

0 comments on commit 8cac824

Please sign in to comment.