diff --git a/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.SourceGenerators.Testing/SourceGeneratorVerifier`3.cs b/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.SourceGenerators.Testing/SourceGeneratorVerifier`3.cs index 6e09737f0f..740172ccd7 100644 --- a/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.SourceGenerators.Testing/SourceGeneratorVerifier`3.cs +++ b/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.SourceGenerators.Testing/SourceGeneratorVerifier`3.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Threading; -using System.Threading.Tasks; - namespace Microsoft.CodeAnalysis.Testing { /// @@ -18,44 +15,5 @@ public class SourceGeneratorVerifier where TTest : SourceGeneratorTest, new() where TVerifier : IVerifier, new() { - /// - /// Verifies the application of the source generator produces the expected result. - /// - /// The source text to test. Any diagnostics are defined in markup. - /// The expected fixed source text. Any remaining diagnostics are defined in markup. - /// A representing the asynchronous operation. - public static Task VerifySourceGeneratorAsync(string source, string fixedSource) - => VerifySourceGeneratorAsync(source, DiagnosticResult.EmptyDiagnosticResults, fixedSource); - - /// - /// Verifies the application of the source generator produces the expected result. - /// - /// The source text to test, which may include markup syntax. - /// The expected diagnostic. This diagnostic is in addition to any diagnostics defined in - /// markup. - /// The expected fixed source text. Any remaining diagnostics are defined in markup. - /// A representing the asynchronous operation. - public static Task VerifySourceGeneratorAsync(string source, DiagnosticResult expected, string fixedSource) - => VerifySourceGeneratorAsync(source, new[] { expected }, fixedSource); - - /// - /// Verifies the application of the source generator produces the expected result. - /// - /// The source text to test, which may include markup syntax. - /// The expected diagnostics. These diagnostics are in addition to any diagnostics - /// defined in markup. - /// The expected fixed source text. Any remaining diagnostics are defined in markup. - /// A representing the asynchronous operation. - public static Task VerifySourceGeneratorAsync(string source, DiagnosticResult[] expected, string fixedSource) - { - var test = new TTest - { - TestCode = source, - FixedCode = fixedSource, - }; - - test.ExpectedDiagnostics.AddRange(expected); - return test.RunAsync(CancellationToken.None); - } } }