public void Cleanup()
    {
        var diagnostics = benchmark.CreateDiagnostics(
            d => d.WithLocation(3, 8, 3, 14).WithArguments("Record"),
            d => d.WithLocation(9, 15, 9, 22).WithArguments("record")
            );

        benchmark.Inspect(diagnostics);
    }
示例#2
0
    public void Cleanup()
    {
        var diagnostics = benchmark.CreateDiagnostics(
            d => d.WithLocation(14, 9, 14, 20).WithArguments("goto Label;"),
            d => d.WithLocation(23, 17, 23, 29).WithArguments("goto case 2;"),
            d => d.WithLocation(26, 17, 26, 29).WithArguments("goto case 1;"),
            d => d.WithLocation(39, 17, 39, 30).WithArguments("goto default;")
            );

        benchmark.Inspect(diagnostics);
    }