public void TestCleanup() { if (DummyClassProxy.IsValid()) { DummyClassProxy.Close(); } }
public void TestCloseAfterOpen() { DummyClass dummyClass = new DummyClass(); DummyClassProxy.Open(dummyClass); DummyClassProxy.Close(); Assert.ThrowsException <SecurityException> (delegate { DummyClassProxy.Get(); }); }
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(); }); }