public void DisposeTest() { Context ctx = new Context(); ctx.Dispose(); Assert.IsTrue( ctx.Disposed ); try { ctx.CreateSocket( SocketType.Publisher ); Assert.Fail( "Disposed Context should not be able to create sockets." ); } catch { } }