Skip to content

Commit 2d87f14

Browse files
authored
Merge pull request #3169 from vweijsters/fix-3166
Added unit test to verify scenario
2 parents 4d742cc + 196de75 commit 2d87f14

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1135UnitTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,5 +441,19 @@ namespace TestNamespace
441441
";
442442
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
443443
}
444+
445+
[Fact]
446+
[WorkItem(3166, "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3166")]
447+
public async Task TestAliasClrTypeAsync()
448+
{
449+
var testCode = @"
450+
namespace System
451+
{
452+
using Float = System.Double;
453+
}
454+
";
455+
456+
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
457+
}
444458
}
445459
}

0 commit comments

Comments
 (0)