コード例 #1
0
        void specify_retaining_stack_trace_through_mulitple_private_calls()
        {
            dynamic toplevel = new TopLevelGemini();
            try
            {
                toplevel.AMethod();
            }
            catch (Exception ex)
            {
                ex.GetType().should_be(typeof(InvalidOperationException));

                ex.ToString().should_contain("AMethod");

                ex.ToString().should_contain("InnerMethodThatThrows");
            }
        }
コード例 #2
0
        void specify_retaining_stack_trace_through_mulitple_private_calls()
        {
            dynamic toplevel = new TopLevelGemini();

            try
            {
                toplevel.AMethod();
            }
            catch (Exception ex)
            {
                ex.GetType().should_be(typeof(InvalidOperationException));

                ex.ToString().should_contain("AMethod");

                ex.ToString().should_contain("InnerMethodThatThrows");
            }
        }