Example #1
0
		public void ParseControl_Deny_Unrestricted ()
		{
			NonAbstractTemplateControl tc = new NonAbstractTemplateControl ();
			try {
				tc.ParseControl (null);
			}
			catch (NullReferenceException) {
				throw;
			}
		}
Example #2
0
        public void ParseControl_Deny_Unrestricted()
        {
            NonAbstractTemplateControl tc = new NonAbstractTemplateControl();

            try {
                tc.ParseControl(null);
            }
            catch (NullReferenceException) {
                throw;
            }
        }
Example #3
0
        public void Events_Deny_Unrestricted()
        {
            NonAbstractTemplateControl tc = new NonAbstractTemplateControl();

            tc.AbortTransaction  += new EventHandler(Handler);
            tc.CommitTransaction += new EventHandler(Handler);
            tc.Error             += new EventHandler(Handler);

            tc.AbortTransaction  -= new EventHandler(Handler);
            tc.CommitTransaction -= new EventHandler(Handler);
            tc.Error             -= new EventHandler(Handler);
        }
Example #4
0
        public void ParseControl_Deny_Unrestricted()
        {
            NonAbstractTemplateControl tc = new NonAbstractTemplateControl();

            try {
                tc.ParseControl(null);
            }
            catch (NullReferenceException) {
#if NET_2_0
                throw;
#else
                Assert.Ignore("NRE");
#endif
            }
        }
Example #5
0
        public void IFilterResolutionService_Deny_Unrestricted()
        {
            IFilterResolutionService frs = new NonAbstractTemplateControl();

            try {
                Assert.AreEqual(0, frs.CompareFilters(String.Empty, String.Empty), "CompareFilters");
            }
            catch (NotImplementedException) {
                // mono
            }
            try {
                Assert.IsFalse(frs.EvaluateFilter(String.Empty), "EvaluateFilter");
            }
            catch (NotImplementedException) {
                // mono
            }
        }
Example #6
0
        public void LoadTemplate_Deny_Unrestricted()
        {
            NonAbstractTemplateControl tc = new NonAbstractTemplateControl();

            tc.LoadTemplate(null);
        }
Example #7
0
		public void LoadTemplate_Deny_Unrestricted ()
		{
			NonAbstractTemplateControl tc = new NonAbstractTemplateControl ();
			tc.LoadTemplate (null);
		}
Example #8
0
		public void IFilterResolutionService_Deny_Unrestricted ()
		{
			IFilterResolutionService frs = new NonAbstractTemplateControl ();
			try {
				Assert.AreEqual (0, frs.CompareFilters (String.Empty, String.Empty), "CompareFilters");
			}
			catch (NotImplementedException) {
				// mono
			}
			try {
				Assert.IsFalse (frs.EvaluateFilter (String.Empty), "EvaluateFilter");
			}
			catch (NotImplementedException) {
				// mono
			}
		}
Example #9
0
		public void Events_Deny_Unrestricted ()
		{
			NonAbstractTemplateControl tc = new NonAbstractTemplateControl ();
			tc.AbortTransaction += new EventHandler (Handler);
			tc.CommitTransaction += new EventHandler (Handler);
			tc.Error += new EventHandler (Handler);

			tc.AbortTransaction -= new EventHandler (Handler);
			tc.CommitTransaction -= new EventHandler (Handler);
			tc.Error -= new EventHandler (Handler);
		}
Example #10
0
		public void ParseControl_Deny_Unrestricted ()
		{
			NonAbstractTemplateControl tc = new NonAbstractTemplateControl ();
			try {
				tc.ParseControl (null);
			}
			catch (NullReferenceException) {
#if NET_2_0
				throw;
#else
				Assert.Ignore ("NRE");
#endif
			}
		}