Skip to content

Commit 3252adf

Browse files
committed
Include a mixed-whitespace test case
1 parent 6749d7c commit 3252adf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/SpacingRules/SA1027UnitTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public async Task TestInvalidTabsInDocumentationCommentsAsync()
107107
"\tpublic class Foo\r\n" +
108108
"\t{\r\n" +
109109
"\t \t/// <MyElement>\tValue </MyElement>\r\n" +
110-
"\t\t/** <MyElement> Value </MyElement>\t*/\r\n" +
110+
"\t\t/**\t \t<MyElement> Value </MyElement>\t*/\r\n" +
111111
"\t}\r\n";
112112

113113
var fixedTestCode = @" /// <summary>
@@ -116,7 +116,7 @@ public async Task TestInvalidTabsInDocumentationCommentsAsync()
116116
public class Foo
117117
{
118118
/// <MyElement> Value </MyElement>
119-
/** <MyElement> Value </MyElement> */
119+
/** <MyElement> Value </MyElement> */
120120
}
121121
";
122122

@@ -133,7 +133,8 @@ public class Foo
133133
this.CSharpDiagnostic().WithLocation(6, 1),
134134
this.CSharpDiagnostic().WithLocation(6, 19),
135135
this.CSharpDiagnostic().WithLocation(7, 1),
136-
this.CSharpDiagnostic().WithLocation(7, 37),
136+
this.CSharpDiagnostic().WithLocation(7, 6),
137+
this.CSharpDiagnostic().WithLocation(7, 39),
137138
this.CSharpDiagnostic().WithLocation(8, 1),
138139
};
139140

0 commit comments

Comments
 (0)