File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/dotnet-new.IntegrationTests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,17 @@ public void CannotDisplayUnknownPackageDetails()
45
45
{
46
46
return ;
47
47
}
48
- new DotnetNewCommand ( _log , "details" , "Some package that does not exist" )
48
+
49
+ var nonexistantPackageName = "Some-package-that-does-not-exist" ;
50
+
51
+ new DotnetNewCommand ( _log , "details" , nonexistantPackageName )
49
52
. WithCustomHive ( CreateTemporaryFolder ( folderName : "Home" ) )
50
53
. WithWorkingDirectory ( CreateTemporaryFolder ( ) )
51
54
. Execute ( )
52
55
. Should ( )
53
56
. ExitWith ( 103 )
54
57
. And . HaveStdErr ( )
55
- . And . HaveStdOutMatching ( "No template packages found matching: Some package that does not exist ." ) ;
58
+ . And . HaveStdOutMatching ( $ "No template packages found matching: { nonexistantPackageName } .") ;
56
59
}
57
60
}
58
61
}
You can’t perform that action at this time.
0 commit comments