Skip to content

Analyzer + code fix to move off of StringAssert APIs #5791

@Evangelink

Description

@Evangelink

Summary

Let's add an analyzer (enabled by default as info) to move off from StringAssert APIs and instead use the equivalent Assert API. The main change (for the codefix) is that the first 2 parameters have been swapped, for example StringAssert.Matches([NotNull] string? value, [NotNull] Regex? pattern) now becomes Assert.Matches([NotNull] Regex? pattern, [NotNull] string? value).

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions