public void DebugAsync_Null_CSharpDebuggingContext_Should_Throw_ArgumentNullException() { var debugger = new CSharpDebugger(); Func <Task> act = () => debugger.DebugAsync(null); act.Should().ThrowExactly <ArgumentNullException>(); }
public async Task StartDebug_GoodCode_With_Breakpoint_CurrentLine_Should_Be_Equals_To(int breakpoint) { var debugger = new CSharpDebugger(); var sourceText = SourceText.From(CSharpSnippets.GoodCode); var context = new CSharpDebuggingContext(sourceText, breakpoint, 0, null); await debugger.DebugAsync(context); context.CurrentLine.Should().Be(breakpoint - 1); }