Skip to content

Commit 4ba45ef

Browse files
committed
Remove duplicate unit test from merge
1 parent 544b14b commit 4ba45ef

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1133UnitTests.cs

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -466,51 +466,6 @@ internal class Foo
466466
await this.VerifyCSharpFixAsync(testCode, fixedTestCode).ConfigureAwait(false);
467467
}
468468

469-
/// <summary>
470-
/// Regression test for issue 1883 (whitespace is preserved incorrectly): https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1883
471-
/// </summary>
472-
/// <returns>A <see cref="Task"/> representing the asynchronous unit test.</returns>
473-
[Fact]
474-
public async Task TestWhitespaceIsHandledCorrectlyAsync()
475-
{
476-
var testCode = @"
477-
namespace SA1133CodeFix
478-
{
479-
using System.ComponentModel;
480-
using System.Diagnostics.CodeAnalysis;
481-
482-
[DefaultValue(true),
483-
SuppressMessage(null, null)]
484-
internal class Foo
485-
{
486-
}
487-
}
488-
";
489-
490-
var fixedTestCode = @"
491-
namespace SA1133CodeFix
492-
{
493-
using System.ComponentModel;
494-
using System.Diagnostics.CodeAnalysis;
495-
496-
[DefaultValue(true)]
497-
[SuppressMessage(null, null)]
498-
internal class Foo
499-
{
500-
}
501-
}
502-
";
503-
504-
DiagnosticResult[] expected =
505-
{
506-
this.CSharpDiagnostic().WithLocation(8, 5)
507-
};
508-
509-
await this.VerifyCSharpDiagnosticAsync(testCode, expected, CancellationToken.None).ConfigureAwait(false);
510-
await this.VerifyCSharpDiagnosticAsync(fixedTestCode, EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
511-
await this.VerifyCSharpFixAsync(testCode, fixedTestCode).ConfigureAwait(false);
512-
}
513-
514469
/// <inheritdoc/>
515470
protected override CodeFixProvider GetCSharpCodeFixProvider()
516471
{

0 commit comments

Comments
 (0)