Example #1
0
 public void TestCleanup()
 {
     if (DummyClassProxy.IsValid())
     {
         DummyClassProxy.Close();
     }
 }
Example #2
0
        public void TestCloseAfterOpen()
        {
            DummyClass dummyClass = new DummyClass();

            DummyClassProxy.Open(dummyClass);

            DummyClassProxy.Close();
            Assert.ThrowsException <SecurityException> (delegate { DummyClassProxy.Get(); });
        }
Example #3
0
 public void TestCloseBeforeOpen()
 {
     Assert.ThrowsException <SecurityException> (delegate { DummyClassProxy.Close(); });
 }
        public void TestCloseWithWrongProxy()
        {
            DummyClass otherDummy = new DummyClass();

            Assert.ThrowsException <SecurityException>(delegate { DummyClassProxy.Close(otherDummy); });
        }
 public void TestCloseAfterOpen()
 {
     DummyClassProxy.Close(m_Dummy);
     Assert.ThrowsException <SecurityException> (delegate { DummyClassProxy.Get(); });
 }