Beispiel #1
0
            protected override void Before_all_tests()
            {
                base.Before_all_tests();

                try
                {
                    throw new Exception("Expected:<1>. Actual:<2>.");
                }
                catch (Exception ex2)
                {
                    exception = ex2;
                }

                beforeExceptionInfo = new ExceptionInfo(exception);

                afterExceptionInfo = beforeExceptionInfo.Serialize().Deserialize <ExceptionInfo>();
            }
Beispiel #2
0
            protected override void Before_all_tests()
            {
                base.Before_all_tests();

                try
                {
                    throw new Exception("Expected:&lt;1&gt;. Actual:&lt;2&gt;.");
                }
                catch (Exception ex2)
                {
                    exception = ex2;
                }

                beforeExceptionInfo = new ExceptionInfo(exception);

                afterExceptionInfo = beforeExceptionInfo.Serialize().Deserialize<ExceptionInfo>();
            }
            protected override void Before_all_tests()
            {
                base.Before_all_tests();

                try
                {
                    throw new Exception("Hello");
                }
                catch (Exception ex2)
                {
                    exception = ex2;
                }

                beforeExceptionInfo = new ExceptionInfo(exception);

                afterExceptionInfo = beforeExceptionInfo.Serialize().Deserialize <ExceptionInfo>();
            }
            protected override void Before_all_tests()
            {
                base.Before_all_tests();

                try
                {
                    throw new Exception("Hello");
                }
                catch (Exception ex2)
                {
                    exception = ex2;
                }

                beforeExceptionInfo = new ExceptionInfo(exception);

                afterExceptionInfo = beforeExceptionInfo.Serialize().Deserialize<ExceptionInfo>();
            }