Example #1
0
        public static bool _Pop_System_ComponentModel_Design_Serialization_ContextStack( )
        {
            //class object
            System.ComponentModel.Design.Serialization.ContextStack _System_ComponentModel_Design_Serialization_ContextStack = new System.ComponentModel.Design.Serialization.ContextStack();

            //Parameters

            //ReturnType/Value
            System.Object returnVal_Real        = null;
            System.Object returnVal_Intercepted = null;

            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnVal_Real = _System_ComponentModel_Design_Serialization_ContextStack.Pop();
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnVal_Intercepted = _System_ComponentModel_Design_Serialization_ContextStack.Pop();
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        public static bool _Push_System_ComponentModel_Design_Serialization_ContextStack_System_Object( )
        {
            //class object
            System.ComponentModel.Design.Serialization.ContextStack _System_ComponentModel_Design_Serialization_ContextStack = new System.ComponentModel.Design.Serialization.ContextStack();

            //Parameters
            System.Object context = null;


            //Exception
            System.Exception exception_Real        = null;
            System.Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                _System_ComponentModel_Design_Serialization_ContextStack.Push(context);
            }

            catch (System.Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                _System_ComponentModel_Design_Serialization_ContextStack.Push(context);
            }

            catch (System.Exception e)
            {
                exception_Intercepted = e;
            }


            return((exception_Real.Message == exception_Intercepted.Message));
        }
        public static bool _Push_System_ComponentModel_Design_Serialization_ContextStack_System_Object( )
        {
            //class object
            System.ComponentModel.Design.Serialization.ContextStack _System_ComponentModel_Design_Serialization_ContextStack = new System.ComponentModel.Design.Serialization.ContextStack();

               //Parameters
               System.Object context = null;

               //Exception
               System.Exception exception_Real = null;
               System.Exception exception_Intercepted = null;

               InterceptionMaintenance.disableInterception( );

               try
               {
            _System_ComponentModel_Design_Serialization_ContextStack.Push(context);
               }

               catch( System.Exception e )
               {
              exception_Real = e;
               }

               InterceptionMaintenance.enableInterception( );

               try
               {
            _System_ComponentModel_Design_Serialization_ContextStack.Push(context);
               }

               catch( System.Exception e )
               {
              exception_Intercepted = e;
               }

               return( ( exception_Real.Message == exception_Intercepted.Message ));
        }