Skip to content

Commit da3f2d9

Browse files
committed
Fix build error with verb tests
1 parent 1d5af56 commit da3f2d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/StaticAnalysis/StaticAnalysis.Test/SignatureVerifierTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ public void ShouldContinueVerbWithoutForceSwitch()
169169
public void CmdletWithApprovedVerb()
170170
{
171171
cmdletSignatureVerifier.Analyze(
172-
new List<string> { Environment.CurrentDirectory },
173-
((dirList) => { return new List<string> { Environment.CurrentDirectory }; }),
172+
new List<string> { _testCmdletDirPath },
173+
((dirList) => { return new List<string> { _testCmdletDirPath }; }),
174174
(cmdletName) => cmdletName.Equals("Get-SampleCmdlet", StringComparison.OrdinalIgnoreCase));
175175

176176
AnalysisReport testReport = cmdletSignatureVerifier.GetAnalysisReport();
@@ -182,8 +182,8 @@ public void CmdletWithApprovedVerb()
182182
public void CmdletWithUnapprovedVerb()
183183
{
184184
cmdletSignatureVerifier.Analyze(
185-
new List<string> { Environment.CurrentDirectory },
186-
((dirList) => { return new List<string> { Environment.CurrentDirectory }; }),
185+
new List<string> { _testCmdletDirPath },
186+
((dirList) => { return new List<string> { _testCmdletDirPath }; }),
187187
(cmdletName) => cmdletName.Equals("Prepare-SampleCmdlet", StringComparison.OrdinalIgnoreCase));
188188

189189
AnalysisReport testReport = cmdletSignatureVerifier.GetAnalysisReport();

0 commit comments

Comments
 (0)