Beispiel #1
0
        public void RequestDiagnostics_can_be_split_into_separate_commands()
        {
            var markupCode = @"

#!time$$

// language-specific code";

            MarkupTestFile.GetLineAndColumn(markupCode, out var code, out var startLineOfCode, out var _column);

            var sourceText = SourceText.From(code);

            var command  = new RequestDiagnostics(code);
            var commands = new CSharpKernel().UseDefaultMagicCommands().SubmissionParser.SplitSubmission(command);

            commands
            .Should()
            .ContainSingle <RequestDiagnostics>()
            .Which
            .Code
            .Should()
            .NotContain("#!time");
        }