예제 #1
0
        private static void AssertIsBreakpoint(DebugEvent evt)
        {
            var exception = evt.As <ExceptionDetail>();

            Assert.NotNull(exception);
            Assert.Equal(ExceptionReason.ExceptionBreakpoint, exception.Exception.Reason);
        }
예제 #2
0
        private static void AssertIsSingleStep(DebugEvent evt)
        {
            var exception = evt.As <ExceptionDetail>();

            Assert.NotNull(exception);
            Assert.Equal(ExceptionReason.ExceptionSingleStep, exception.Exception.Reason);
        }
예제 #3
0
        private static void AssertIsNotSingleStep(DebugEvent evt)
        {
            var exception = evt.As <ExceptionDetail>();

            if (exception == null)
            {
                return;
            }
            Assert.NotEqual(ExceptionReason.ExceptionSingleStep, exception.Exception.Reason);
        }