[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromDom_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromDomBatch_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromFile_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromFileBatch_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromSource_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void FromSourceBatch_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();
[Test]
[EnvironmentPermission (SecurityAction.Deny, Unrestricted = true)]
[ExpectedException (typeof (SecurityException))]
+#if ONLY_1_1
+ [Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
+#endif
public void GetResponseFileCmdArgs_Deny_Environment ()
{
CodeCompilerTest cc = new CodeCompilerTest ();