Skip to content

Commit e342286

Browse files
committed
Remove tests where rules are no longer applicable to the breaking change tool
1 parent 966fe6f commit e342286

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

tools/StaticAnalysis/StaticAnalysis.Test/BreakingChangeAnalyzerTests.cs

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -598,58 +598,6 @@ public void RemoveProperty()
598598
.SingleOrDefault<int>().Equals(BreakingChangeProblemId.RemovedProperty));
599599
}
600600

601-
[Fact]
602-
[Trait(Category.AcceptanceType, Category.CheckIn)]
603-
public void ChangeOutputGenericTypeArgument()
604-
{
605-
cmdletBreakingChangeAnalyzer.Analyze(
606-
new List<string> { _testCmdletDirPath },
607-
((dirList) => { return new List<string> { _testCmdletDirPath }; }),
608-
(cmdletName) => cmdletName.Equals("Test-ChangeOutputGenericTypeArgument", StringComparison.OrdinalIgnoreCase));
609-
610-
AnalysisReport testReport = cmdletBreakingChangeAnalyzer.GetAnalysisReport();
611-
612-
string output = "Test-ChangeOutputGenericTypeArgument\nProblemId Count: " + testReport.ProblemIdList.Count;
613-
614-
foreach (var problemId in testReport.ProblemIdList)
615-
{
616-
output += "\nProblemId: " + problemId;
617-
}
618-
619-
xunitOutput.WriteLine(output);
620-
621-
Assert.Equal(1, testReport.ProblemIdList.Count);
622-
Assert.True(testReport.ProblemIdList
623-
.Where<int>((problemId) => problemId.Equals(BreakingChangeProblemId.ChangedGenericTypeArgument))
624-
.SingleOrDefault<int>().Equals(BreakingChangeProblemId.ChangedGenericTypeArgument));
625-
}
626-
627-
[Fact]
628-
[Trait(Category.AcceptanceType, Category.CheckIn)]
629-
public void DifferentOutputGenericTypeArgumentSize()
630-
{
631-
cmdletBreakingChangeAnalyzer.Analyze(
632-
new List<string> { _testCmdletDirPath },
633-
((dirList) => { return new List<string> { _testCmdletDirPath }; }),
634-
(cmdletName) => cmdletName.Equals("Test-DifferentOutputGenericTypeArgumentSize", StringComparison.OrdinalIgnoreCase));
635-
636-
AnalysisReport testReport = cmdletBreakingChangeAnalyzer.GetAnalysisReport();
637-
638-
string output = "Test-DifferentOutputGenericTypeArgumentSize\nProblemId Count: " + testReport.ProblemIdList.Count;
639-
640-
foreach (var problemId in testReport.ProblemIdList)
641-
{
642-
output += "\nProblemId: " + problemId;
643-
}
644-
645-
xunitOutput.WriteLine(output);
646-
647-
Assert.Equal(1, testReport.ProblemIdList.Count);
648-
Assert.True(testReport.ProblemIdList
649-
.Where<int>((problemId) => problemId.Equals(BreakingChangeProblemId.DifferentGenericTypeArgumentSize))
650-
.SingleOrDefault<int>().Equals(BreakingChangeProblemId.DifferentGenericTypeArgumentSize));
651-
}
652-
653601
[Fact]
654602
[Trait(Category.AcceptanceType, Category.CheckIn)]
655603
public void ChangeParameterElementType()

0 commit comments

Comments
 (0)