public void CodeFixer_WithTestData_ShouldFixSource(TestData testData)
 {
     VerifyCSharpFix(testData.BrokenSource, testData.ExpectedFixedSource, null, allowNewCompilerDiagnostics: true);
 }
 public void Analyzer_WithTestData_ShouldReportAttribute(TestData testData)
 {
     var expectedLocation = testData.ExpectedDiagnositicLocation;
     var expected = new DiagnosticResult
     {
         Id = "DebuggerStepThroughRemover",
         Message = $"Type 'TypeName' is decorated with DebuggerStepThrough attribute",
         Severity = DiagnosticSeverity.Warning,
         Locations =
             new[] {
                     new DiagnosticResultLocation("Test0.cs", expectedLocation.Line, expectedLocation.Character)
                 }
     };
     VerifyCSharpDiagnostic(testData.BrokenSource, expected);
 }