コード例 #1
0
        public async Task DebugAsync_Good_Code_Run_Until_Breakpoint_CurrentLine_Should_Be_Equails_To(int breakpoint)
        {
            var session = new CSharpDebuggingSession(new CSharpDebugger());
            var result  = await session.DebugAsync(new BuildingTask("test", CSharpSnippets.GoodCode) { Breakpoints = new[] { breakpoint }, IsRunToNextBreakpoint = true });

            result.CurrentLine.Should().Be(breakpoint - 1);
        }
コード例 #2
0
        public void DebugAsync_Disposed_Should_Throw_ObjectDisposedException()
        {
            var session = new CSharpDebuggingSession(new CSharpDebugger());

            session.Dispose();
            Func <Task <BuildingResult> > act = () => session.DebugAsync(new BuildingTask(null, null));

            act.Should().ThrowExactly <ObjectDisposedException>();
        }