CSharpAnalyzerVerifier.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Microsoft.CodeAnalysis.CSharp.Testing;
  10. using Microsoft.CodeAnalysis.Diagnostics;
  11. using Microsoft.CodeAnalysis.Testing;
  12. namespace System.Reactive.Analyzers.Test.Verifiers
  13. {
  14. /// <summary>
  15. /// A C# analyzer verifier with a parameterised test type.
  16. /// </summary>
  17. /// <typeparam name="TAnalyzer"></typeparam>
  18. /// <typeparam name="TTest"></typeparam>
  19. /// <typeparam name="TVerifier"></typeparam>
  20. /// <remarks>
  21. /// Oddly, this seems to be missing from the test libraries. The only C#-specific verifier
  22. /// supplies its own Test class with no ability to customize it, and since it defaults to
  23. /// a .NET Core 3.1 build, that's not very useful!
  24. /// </remarks>
  25. internal class CSharpAnalyzerVerifier<TAnalyzer, TTest, TVerifier> :
  26. AnalyzerVerifier<AddUiFrameworkPackageAnalyzer, TTest, TVerifier>
  27. where TAnalyzer : DiagnosticAnalyzer, new()
  28. where TTest : CSharpAnalyzerTest<TAnalyzer, TVerifier>, new()
  29. where TVerifier : IVerifier, new()
  30. {
  31. }
  32. }