Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void throwsWhenDelegateIsNotSet()
        public virtual void ThrowsWhenDelegateIsNotSet()
        {
            DelegateInvocationHandler <Value> handler = NewDelegateInvocationHandler();

            try
            {
                handler.Invoke(new object(), typeof(Value).getDeclaredMethod("get"), new object[0]);
                fail("Exception expected");
            }
            catch (Exception t)
            {
                assertThat(t, instanceOf(typeof(TransactionFailureException)));
            }
        }