public InitializeResult Initialize()
 {
     Log.Comment("Adding set up for the tests");
     string szAssm = typeof(SystemAppDomainTests).Assembly.FullName;
     m_appDomain = AppDomain.CreateDomain(this.GetType().FullName);
     m_appDomain.Load(szAssm);
     m_mbroProxy = (MyMarshalByRefObject)m_appDomain.CreateInstanceAndUnwrap(szAssm, typeof(MyMarshalByRefObject).FullName);
     m_mbro = new MyMarshalByRefObject();
     return InitializeResult.ReadyToGo;
 }
        public InitializeResult Initialize()
        {
            Log.Comment("Adding set up for the tests");
            string szAssm = typeof(SystemAppDomainTests).Assembly.FullName;

            m_appDomain = AppDomain.CreateDomain(this.GetType().FullName);
            m_appDomain.Load(szAssm);
            m_mbroProxy = (MyMarshalByRefObject)m_appDomain.CreateInstanceAndUnwrap(szAssm, typeof(MyMarshalByRefObject).FullName);
            m_mbro      = new MyMarshalByRefObject();
            return(InitializeResult.ReadyToGo);
        }
        public MFTestResults MarshalMBRO_Test17()
        {
            MFTestResults        testResult = MFTestResults.Pass;
            MyMarshalByRefObject mbro       = m_mbroProxy.MarshalMBRO(m_mbro);

            if (mbro != m_mbro)
            {
                Log.Comment("Failure : Expected '" + m_mbro + "' but got '" + mbro + "'");
                testResult = MFTestResults.Fail;
            }

            return(testResult);
        }
        public MFTestResults MarshalMBROByRef_Test18()
        {
            MFTestResults        testResult = MFTestResults.Pass;
            MyMarshalByRefObject mbro       = new MyMarshalByRefObject();
            MyMarshalByRefObject mbro2      = new MyMarshalByRefObject();

            m_mbroProxy.MarshalMBROByRef(ref mbro, mbro2);
            if (!Object.ReferenceEquals(mbro, mbro2))
            {
                Log.Comment("Failure : Marshalling Obj. by Reference and comparing Object.ReferenceEquals(mbro, mbro2) failed");
                testResult = MFTestResults.Fail;
            }

            return(testResult);
        }
 public void MarshalMBROByRef(ref MyMarshalByRefObject mbro, MyMarshalByRefObject mbro2)
 {
     mbro = mbro2;
 }
 public MyMarshalByRefObject MarshalMBRO(MyMarshalByRefObject mbro)
 {
     return mbro;
 }
 public void MarshalDeadProxy(MyMarshalByRefObject mbro)
 {
 }
 public void MarshalDyingProxy(MyMarshalByRefObject mbro)
 {
 }
 public bool ProxyEquality(MyMarshalByRefObject mbro1, MyMarshalByRefObject mbro2)
 {
     return mbro1 == mbro2;
 }
        public MFTestResults MarshalMBROByRef_Test18()
        {
            MFTestResults testResult = MFTestResults.Pass;
            MyMarshalByRefObject mbro = new MyMarshalByRefObject();
            MyMarshalByRefObject mbro2 = new MyMarshalByRefObject();

            m_mbroProxy.MarshalMBROByRef(ref mbro, mbro2);
            if(!Object.ReferenceEquals(mbro, mbro2))
            {
            Log.Comment("Failure : Marshalling Obj. by Reference and comparing Object.ReferenceEquals(mbro, mbro2) failed");
                testResult = MFTestResults.Fail;
            }

            return testResult;
        }
 public void MarshalMBROByRef(ref MyMarshalByRefObject mbro, MyMarshalByRefObject mbro2)
 {
     mbro = mbro2;
 }
 public MyMarshalByRefObject MarshalMBRO(MyMarshalByRefObject mbro)
 {
     return(mbro);
 }
 public void MarshalDeadProxy(MyMarshalByRefObject mbro)
 {
 }
 public void MarshalDyingProxy(MyMarshalByRefObject mbro)
 {
 }
 public bool ProxyEquality(MyMarshalByRefObject mbro1, MyMarshalByRefObject mbro2)
 {
     return(mbro1 == mbro2);
 }