Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource committed Apr 26, 2024
1 parent b0af752 commit 6b073ed
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -225,7 +225,7 @@ public class Program { }
private static AttributeData CompileAttribute(string code, bool ignoreErrors = false) =>
new SnippetCompiler(code, ignoreErrors, AnalyzerLanguage.CSharp).GetTypeSymbol("Program").GetAttributes().Single(x => x.HasName("MyAttribute"));

private static AttributeData AttributeDataWithName(string attributeClassName)
private static AttributeDataMock AttributeDataWithName(string attributeClassName)
{
var namedType = Substitute.For<INamedTypeSymbol>();
namedType.Name.Returns(attributeClassName);
Expand Down

0 comments on commit 6b073ed

Please sign in to comment.