We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58dbaed commit 2406656Copy full SHA for 2406656
1 file changed
StyleCop.Analyzers/StyleCop.Analyzers.Test/NamingRules/SA1304UnitTests.cs
@@ -61,6 +61,17 @@ public async Task TestProtectedReadonlyFieldStartingWithUpperCaseAsync()
61
await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
62
}
63
64
+ [Fact]
65
+ public async Task TestFieldInNativeClassMethodAsync()
66
+ {
67
+ var testCode = @"public class FooNativeMethods
68
+{
69
+ internal readonly string bar = ""baz"";
70
+}";
71
+
72
+ await VerifyCSharpDiagnosticAsync(testCode, DiagnosticResult.EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
73
+ }
74
75
[Fact]
76
public async Task TestInternalReadonlyFieldStartingWithLowerCaseAsync()
77
{
0 commit comments