* UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
which results in a different behaviour in Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33266
+2004-09-03 Sebastien Pouliot <sebastien@ximian.com>
+
+ * UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
+ which results in a different behaviour in Fx 1.1 and 2.0.
+
2004-09-01 Sebastien Pouliot <sebastien@ximian.com>
* EnvironmentPermissionTest.cs: Fixed tests so they execute without
}
}
+ [Test]
+#if !NET_2_0
+ [ExpectedException (typeof (NullReferenceException))]
+#endif
+ public void Copy_None ()
+ {
+ UrlIdentityPermission uip = new UrlIdentityPermission (PermissionState.None);
+ UrlIdentityPermission copy = (UrlIdentityPermission)uip.Copy ();
+ }
+
[Test]
public void Intersect_Null ()
{