Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump Roslyn to 4.7.0 ([#1218](https://github.com/dotnet/roslynator/pull/1218)).
- Applies to CLI and testing library.
- Bump Microsoft.Build.Locator to 1.6.1 ([#1194](https://github.com/josefpihrt/roslynator/pull/1194))
- Improve testing framework ([#1214](https://github.com/dotnet/roslynator/pull/1214))
- Add methods to `DiagnosticVerifier`, `RefactoringVerifier` and `CompilerDiagnosticFixVerifier`.
- Add property `DiagnosticVerifier.Descriptor` (BREAKING CHANGE).
- Add property `CompilerDiagnosticFixVerifier.DiagnosticId` (BREAKING CHANGE).
- Make property `DiagnosticTestData.Descriptor` obsolete.
- Make property `CompilerDiagnosticFixTestData.DiagnosticId` obsolete.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Roslynator.CSharp.Analysis.Tests;

public class RCS1046AsynchronousMethodNameShouldEndWithAsyncTests : AbstractCSharpDiagnosticVerifier<AsyncSuffixAnalyzer, DummyCodeFixProvider>
public class RCS1046AsynchronousMethodNameShouldEndWithAsyncTests : AbstractCSharpDiagnosticVerifier<AsyncSuffixAnalyzer, EmptyCodeFixProvider>
{
public override DiagnosticDescriptor Descriptor { get; } = DiagnosticRules.AsynchronousMethodNameShouldEndWithAsync;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Roslynator.CSharp.Analysis.Tests;

public class RCS1047NonAsynchronousMethodNameShouldNotEndWithAsyncTests : AbstractCSharpDiagnosticVerifier<AsyncSuffixAnalyzer, DummyCodeFixProvider>
public class RCS1047NonAsynchronousMethodNameShouldNotEndWithAsyncTests : AbstractCSharpDiagnosticVerifier<AsyncSuffixAnalyzer, EmptyCodeFixProvider>
{
public override DiagnosticDescriptor Descriptor { get; } = DiagnosticRules.NonAsynchronousMethodNameShouldNotEndWithAsync;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Roslynator.CSharp.Analysis.Tests;

public class RCS061MergeIfWithNestedIfTests : AbstractCSharpDiagnosticVerifier<MergeIfWithNestedIfAnalyzer, IfStatementCodeFixProvider>
public class RCS1061MergeIfWithNestedIfTests : AbstractCSharpDiagnosticVerifier<MergeIfWithNestedIfAnalyzer, IfStatementCodeFixProvider>
{
public override DiagnosticDescriptor Descriptor => DiagnosticRules.MergeIfWithNestedIf;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,6 @@ void M2(Func<object> p)
M2(M);
}
}
", options: Options.AddConfigOption(ConfigOptionKeys.UseAnonymousFunctionOrMethodGroup, ConfigOptionValues.UseAnonymousFunctionOrMethodGroup_MethodGroup));
", options: Options.SetConfigOption(ConfigOptionKeys.UseAnonymousFunctionOrMethodGroup, ConfigOptionValues.UseAnonymousFunctionOrMethodGroup_MethodGroup));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Roslynator.CSharp.Analysis.Tests;

public class ROS0002AnalyzerOptionIsObsoleteTests : AbstractCSharpDiagnosticVerifier<AnalyzerOptionIsObsoleteAnalyzer, DummyCodeFixProvider>
public class ROS0002AnalyzerOptionIsObsoleteTests : AbstractCSharpDiagnosticVerifier<AnalyzerOptionIsObsoleteAnalyzer, EmptyCodeFixProvider>
{
public override DiagnosticDescriptor Descriptor { get; } = CommonDiagnosticRules.AnalyzerOptionIsObsolete;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Roslynator.CSharp.Analysis;
using Xunit;

namespace Roslynator.Analyzers.Tests.UnitTests;
namespace Roslynator.CSharp.Analysis.Tests;

public class PatternMatchingVariableDeclarationHelperTests
{
Expand Down
91 changes: 0 additions & 91 deletions src/Tests/Analyzers.Tests/_RCSTests.cs

This file was deleted.

103 changes: 0 additions & 103 deletions src/Tests/CodeAnalysis.Analyzers.Tests/_RCSTests.cs

This file was deleted.

69 changes: 0 additions & 69 deletions src/Tests/CodeFixes.Tests/_CSTests.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void M(object x, string y)
.ToString());
}
}
", options: Options.AddConfigOption("indent_style", "tab"));
", options: Options.SetConfigOption("indent_style", "tab"));
}

[Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.FixFormattingOfList)]
Expand Down
Loading