Use ExpectedException(string) when referring to internal exception types
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 6 Jul 2009 16:02:16 +0000 (16:02 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 6 Jul 2009 16:02:16 +0000 (16:02 -0000)
In class/System.Web/Test/System.Web.Compilation:

* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
Don't use 'typeof' on a System.Web internal exception type.
(InvalidPropertyBindTest3): Likewise.

In class/System.Web/Test/System.Web.UI:

* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
System.Web internal exception type.

svn path=/trunk/mcs/; revision=137420

mcs/class/System.Web/Test/System.Web.Compilation/ChangeLog
mcs/class/System.Web/Test/System.Web.Compilation/TemplateControlCompilerTest.cs
mcs/class/System.Web/Test/System.Web.UI/ChangeLog
mcs/class/System.Web/Test/System.Web.UI/PageParserTest.cs

index 06b3dfadaf5a7435b7f2658c823b7e45a4d9fed6..b3855d0aa907a57849ab31f7c4b5f2247416ca3b 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-06  Raja R Harinath  <harinath@hurrynot.org>
+
+       * TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
+       Don't use 'typeof' on a System.Web internal exception type.
+       (InvalidPropertyBindTest3): Likewise.
+
 2009-06-30  Marek Habersack  <mhabersack@novell.com>
 
        * TemplateControlCompilerTest.cs: added test for bug #517656
index 95d0a2d815836c7c84cb18972ed951834ce08c01..34dcc5e8430baeecf1620cbf0afc30e269ee9a85 100644 (file)
@@ -93,7 +93,7 @@ namespace MonoTests.System.Web.Compilation {
                }
                
                [Test]
-               [ExpectedException (typeof (CompilationException))]
+               [ExpectedException ("System.Web.Compilation.CompilationException")]
                public void InvalidPropertyBindTest1 ()
                {
                        new WebTest ("InvalidPropertyBind1.aspx").Run ();
@@ -107,7 +107,7 @@ namespace MonoTests.System.Web.Compilation {
                }
 
                [Test]
-               [ExpectedException (typeof (CompilationException))]
+               [ExpectedException ("System.Web.Compilation.CompilationException")]
                public void InvalidPropertyBindTest3 ()
                {
                        new WebTest ("InvalidPropertyBind3.aspx").Run ();
index 39e163ca418dc3829d1d6be8c1f8532c0dd4c9a0..3a58dd2580e09c16e8dac6eb1ff98f54802f8d5d 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-06  Raja R Harinath  <harinath@hurrynot.org>
+
+       * PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
+       System.Web internal exception type.
+
 2009-04-24  Marek Habersack  <mhabersack@novell.com>
 
        * PageParserFilterTest.cs: added
index 05ec0ff816845f2220a44548f5a76cc7f2df4e8d..8f94f587a422c26f71dd6e5c816eefd4ba3a45a6 100644 (file)
@@ -29,7 +29,6 @@
 using NUnit.Framework;
 using System;
 using System.Web;
-using System.Web.Compilation;
 using System.Web.UI;
 using MonoTests.SystemWeb.Framework;
 
@@ -45,7 +44,7 @@ namespace MonoTests.System.Web.UI
                }
                
                [Test]
-               [ExpectedException (typeof (ParseException))]
+               [ExpectedException ("System.Web.Compilation.ParseException")]
                public void MissingMasterFile ()
                {
                        new WebTest ("MissingMasterFile.aspx").Run ();