Skip to content

Many Microsoft.CodeAnalysis.NetAnalyzers.UnitTests tests have duplicate test cases #52993

@tmat

Description

@tmat

Reported by VS/VS Code when sdk.slnx is loaded.

[xUnit.net 00:00:06.08] Microsoft.CodeAnalysis.NetAnalyzers.UnitTests: Skipping test case with duplicate ID 'e41eef38623621b95010648d8e62ecb98b8de55e' ('Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.Diagnostic_Assign(diagnosedLine: "a.ToLower().IndexOf(value: b, count: 1, startIndex"···, fixedLine: "a.IndexOf(value: b, count: 1, startIndex: 1, compa"···)' and 'Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.Diagnostic_Assign(diagnosedLine: "a.ToLower().IndexOf(value: b, count: 1, startIndex"···, fixedLine: "a.IndexOf(value: b, count: 1, startIndex: 1, compa"···)')
[xUnit.net 00:00:06.08] Microsoft.CodeAnalysis.NetAnalyzers.UnitTests: Skipping test case with duplicate ID '3de5581da7327135cce75166c471d1449d85ad71' ('Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.Diagnostic_Assign(diagnosedLine: "a.ToUpper().IndexOf(value: b, count: 1, startIndex"···, fixedLine: "a.IndexOf(value: b, count: 1, startIndex: 1, compa"···)' and 'Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.Diagnostic_Assign(diagnosedLine: "a.ToUpper().IndexOf(value: b, count: 1, startIndex"···, fixedLine: "a.IndexOf(value: b, count: 1, startIndex: 1, compa"···)')
[xUnit.net 00:00:06.08] Microsoft.CodeAnalysis.NetAnalyzers.UnitTests: Skipping test case with duplicate ID 'd3129cb2f6a6a70f022f6d1484429b5cca6ccfbb' ('Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.Diagnostic_Assign(diagnosedLine: "a.ToLowerInvariant().IndexOf(value: b, count: 1, s"···, fixedLine: "a.IndexOf(value: b, count: 1, startIndex: 1, compa"···)' and 'Microsoft.NetCore.Analyzers.Performance.UnitTests.RecommendCaseInsensitiveStringComparison_CSharp_Tests.D

...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions