Skip to content

Commit 5df8b98

Browse files
committed
take out relevant test
1 parent a223494 commit 5df8b98

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

tools/StaticAnalysis/StaticAnalysis.Test/SignatureVerifierTests.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void ConfirmImpactWithoutSupportsShouldProcess()
133133
}
134134
#endregion
135135

136-
#region IsShouldContinueVerb and ForceSwitch
136+
#region IsShouldContinueVerb
137137
[Fact]
138138
[Trait(Category.AcceptanceType, Category.CheckIn)]
139139
public void ShouldContinueVerbWithForceSwitch()
@@ -146,21 +146,6 @@ public void ShouldContinueVerbWithForceSwitch()
146146
AnalysisReport testReport = cmdletSignatureVerifier.GetAnalysisReport();
147147
Assert.Equal(0, testReport.ProblemIdList.Count);
148148
}
149-
150-
[Fact]
151-
[Trait(Category.AcceptanceType, Category.CheckIn)]
152-
public void ShouldContinueVerbWithoutForceSwitch()
153-
{
154-
cmdletSignatureVerifier.Analyze(
155-
new List<string> { _testCmdletDirPath },
156-
((dirList) => { return new List<string> { _testCmdletDirPath}; }),
157-
(cmdletName) => cmdletName.Equals("Export-ShouldContinueVerbWithoutForceSwitch", StringComparison.OrdinalIgnoreCase));
158-
159-
AnalysisReport testReport = cmdletSignatureVerifier.GetAnalysisReport();
160-
Assert.Equal(2, testReport.ProblemIdList.Count);
161-
Assert.True(testReport.ProblemIdList.Where<int>((problemId) => problemId.Equals(SignatureProblemId.CmdletWithDestructiveVerbNoForce)).SingleOrDefault<int>().Equals(SignatureProblemId.CmdletWithDestructiveVerbNoForce));
162-
Assert.True(testReport.ProblemIdList.Where<int>((problemId) => problemId.Equals(SignatureProblemId.ActionIndicatesShouldProcess)).SingleOrDefault<int>().Equals(SignatureProblemId.ActionIndicatesShouldProcess));
163-
}
164149
#endregion
165150

166151
#region CmdletWithUnapprovedVerb

0 commit comments

Comments
 (0)