Selaa lähdekoodia

2005-10-25 Sebastien Pouliot <[email protected]>

* CompilerErrorCas.cs: Under 1.x CompilerError is protected by a
LinkDemand for Unrestricted.
* CompilerErrorCollectionCas.cs: Under 1.x CompilerError is protected
by a LinkDemand for Unrestricted.
* TempFileCollectionCas.cs: Moved precompiler directive to the right
method (to ignore a test under MS 1.x).


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

Sebastien Pouliot 20 vuotta sitten
vanhempi
sitoutus
67c4e7affa

+ 9 - 0
mcs/class/System/Test/System.CodeDom.Compiler/ChangeLog

@@ -1,3 +1,12 @@
+2005-10-25  Sebastien Pouliot  <[email protected]> 
+ 
+	* CompilerErrorCas.cs: Under 1.x CompilerError is protected by a 
+	LinkDemand for Unrestricted.
+	* CompilerErrorCollectionCas.cs: Under 1.x CompilerError is protected
+	by a LinkDemand for Unrestricted.
+	* TempFileCollectionCas.cs: Moved precompiler directive to the right
+	method (to ignore a test under MS 1.x).
+
 2005-10-25  Sebastien Pouliot  <[email protected]>
 
 	* TempFileCollectionCas.cs: New. CAS unit tests.

+ 3 - 0
mcs/class/System/Test/System.CodeDom.Compiler/CompilerErrorCas.cs

@@ -100,6 +100,9 @@ namespace MonoCasTests.System.CodeDom.Compiler {
 
 		[Test]
 		[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
+#if ONLY_1_1
+		[ExpectedException (typeof (SecurityException))]
+#endif
 		public void LinkDemand_Deny_Unrestricted ()
 		{
 			ConstructorInfo ci = typeof (CompilerError).GetConstructor (new Type [0]);

+ 3 - 0
mcs/class/System/Test/System.CodeDom.Compiler/CompilerErrorCollectionCas.cs

@@ -121,6 +121,9 @@ namespace MonoCasTests.System.CodeDom.Compiler {
 
 		[Test]
 		[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
+#if ONLY_1_1
+		[ExpectedException (typeof (SecurityException))]
+#endif
 		public void LinkDemand_Deny_Unrestricted ()
 		{
 			ConstructorInfo ci = typeof (CompilerErrorCollection).GetConstructor (new Type[0]);

+ 3 - 3
mcs/class/System/Test/System.CodeDom.Compiler/TempFileCollectionCas.cs

@@ -126,9 +126,6 @@ namespace MonoCasTests.System.CodeDom.Compiler {
 		[Test]
 		[EnvironmentPermission (SecurityAction.PermitOnly, Unrestricted = true)]
 		[ExpectedException (typeof (SecurityException))]
-#if ONLY_1_1
-		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
-#endif
 		public void BasePath_PermitOnly_EnvironmentPermission ()
 		{
 			TempFileCollection tfc = new TempFileCollection ();
@@ -139,6 +136,9 @@ namespace MonoCasTests.System.CodeDom.Compiler {
 		[Test]
 		[EnvironmentPermission (SecurityAction.Deny, Read = "Mono")]
 		[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
 		public void BasePath_Deny_EnvironmentPermission ()
 		{
 			TempFileCollection tfc = new TempFileCollection ();