Skip to content

Commit 036e160

Browse files
committed
Disable CS0419 in test to avoid warnings after code fix is applied
I'm unabled to reproduce this issue in Visual Studio 2017, so it could be a bug that only manifests in API usage of Roslyn or has since been fixed.
1 parent 536040e commit 036e160

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1121UnitTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ public class Foo
663663
[MemberData(nameof(AllTypes))]
664664
public async Task TestDocumentationCommentDirectReferenceCodeFixAsync(string predefined, string fullName)
665665
{
666-
string testCode = @"namespace System {{
666+
string testCode = @"#pragma warning disable CS0419 // Ambiguous reference in cref attribute
667+
namespace System {{
667668
/// <seealso cref=""{0}""/>
668669
public class Foo
669670
{{

0 commit comments

Comments
 (0)