Пример #1
0
        public void GetResponseFileCmdArgs_Deny_FileIO()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            try {
                cc._GetResponseFileCmdArgs(new CompilerParameters(), String.Empty);
            }
            catch (NotImplementedException) {
                Assert.Ignore("GetResponseFileCmdArgs not implemented");
            }
        }
Пример #2
0
        public void GetResponseFileCmdArgs_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            try {
                Assert.IsNotNull(cc._GetResponseFileCmdArgs(new CompilerParameters(), String.Empty));
            }
            catch (NotImplementedException) {
                // mono
            }
        }
Пример #3
0
        [Category("NotDotNet")]          // MS doesn't check for Environment under 1.x
#endif
        public void FromSourceBatch_Deny_Environment()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromSourceBatch(new CompilerParameters(), new string[] { String.Empty });
        }
Пример #4
0
        [Category("NotDotNet")]          // MS doesn't check for Environment under 1.x
#endif
        public void FromSource_Deny_Environment()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromSource(new CompilerParameters(), String.Empty);
        }
Пример #5
0
        public void FromSource_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromSource(new CompilerParameters(), String.Empty);
        }
Пример #6
0
        [Category("NotDotNet")]          // MS doesn't check for Environment under 1.x
#endif
        public void FromFile_Deny_Environment()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromFile(new CompilerParameters(), filename);
        }
Пример #7
0
        [Category("NotDotNet")]          // MS doesn't check for Environment under 1.x
#endif
        public void FromDomBatch_Deny_Environment()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDomBatch(new CompilerParameters(), new CodeCompileUnit[] { new CodeCompileUnit() });
        }
Пример #8
0
        public void FromDomBatch_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDomBatch(new CompilerParameters(), new CodeCompileUnit[] { new CodeCompileUnit() });
        }
Пример #9
0
        public void FromDom_Deny_UnmanagedCode()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDom(new CompilerParameters(), new CodeCompileUnit());
        }
Пример #10
0
		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
#endif
		public void FromFile_Deny_Environment ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromFile (new CompilerParameters (), filename);
		}
Пример #11
0
		public void FromFile_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromFile (new CompilerParameters (), filename);
		}
Пример #12
0
		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
#endif
		public void FromDomBatch_Deny_Environment ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDomBatch (new CompilerParameters (), new CodeCompileUnit[] { new CodeCompileUnit () });
		}
Пример #13
0
		public void FromDomBatch_Deny_UnmanagedCode ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDomBatch (new CompilerParameters (), new CodeCompileUnit[] { new CodeCompileUnit () });
		}
Пример #14
0
		public void FromDomBatch_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDomBatch (new CompilerParameters (), new CodeCompileUnit[] { new CodeCompileUnit () });
		}
Пример #15
0
		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
#endif
		public void FromDom_Deny_Environment ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDom (new CompilerParameters (), new CodeCompileUnit ());
		}
Пример #16
0
		public void FromDom_Deny_UnmanagedCode ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDom (new CompilerParameters (), new CodeCompileUnit ());
		}
Пример #17
0
		public void FromFileBatch_Deny_FileIO ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromFileBatch (new CompilerParameters (), new string[] { String.Empty });
		}
Пример #18
0
        [Category("NotDotNet")]          // MS doesn't check for Environment under 1.x
#endif
        public void FromDom_Deny_Environment()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDom(new CompilerParameters(), new CodeCompileUnit());
        }
Пример #19
0
		public void FromSource_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromSource (new CompilerParameters (), String.Empty);
		}
Пример #20
0
        public void FromDomBatch_Deny_UnmanagedCode()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDomBatch(new CompilerParameters(), new CodeCompileUnit[] { new CodeCompileUnit() });
        }
Пример #21
0
		public void FromSource_Deny_UnmanagedCode ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromSource (new CompilerParameters (), String.Empty);
		}
Пример #22
0
        public void FromFile_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromFile(new CompilerParameters(), filename);
        }
Пример #23
0
		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
#endif
		public void FromSource_Deny_Environment ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromSource (new CompilerParameters (), String.Empty);
		}
Пример #24
0
        public void FromFileBatch_Deny_FileIO()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromFileBatch(new CompilerParameters(), new string[] { String.Empty });
        }
Пример #25
0
		public void FromSourceBatch_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromSourceBatch (new CompilerParameters (), new string[] { String.Empty });
		}
Пример #26
0
        public void FromSource_Deny_UnmanagedCode()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromSource(new CompilerParameters(), String.Empty);
        }
Пример #27
0
		[Category ("NotDotNet")] // MS doesn't check for Environment under 1.x
#endif
		public void FromSourceBatch_Deny_Environment ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromSourceBatch (new CompilerParameters (), new string[] { String.Empty });
		}
Пример #28
0
        public void FromSourceBatch_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromSourceBatch(new CompilerParameters(), new string[] { String.Empty });
        }
Пример #29
0
		public void GetResponseFileCmdArgs_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			try {
				Assert.IsNotNull (cc._GetResponseFileCmdArgs (new CompilerParameters (), String.Empty));
			}
			catch (NotImplementedException) {
				// mono
			}
		}
Пример #30
0
		public void GetResponseFileCmdArgs_Deny_FileIO ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			try {
				cc._GetResponseFileCmdArgs (new CompilerParameters (), String.Empty);
			}
			catch (NotImplementedException) {
				Assert.Ignore ("GetResponseFileCmdArgs not implemented");
			}
		}
Пример #31
0
        public void FromDom_PermitOnly()
        {
            CodeCompilerTest cc = new CodeCompilerTest();

            cc._FromDom(new CompilerParameters(), new CodeCompileUnit());
        }
Пример #32
0
 public void JoinStringArray()
 {
     string[] data = new string[] { "a", "b", "c" };
     Assert.AreEqual("\"a\"#\"b\"#\"c\"", CodeCompilerTest._JoinStringArray(data, "#"), "JoinStringArray");
 }
Пример #33
0
		public void FromDom_PermitOnly ()
		{
			CodeCompilerTest cc = new CodeCompilerTest ();
			cc._FromDom (new CompilerParameters (), new CodeCompileUnit ());
		}