Skip to content

Commit 4246eac

Browse files
committed
Fix invalid package name in test
1 parent 9995bb9 commit 4246eac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/dotnet-new.IntegrationTests/DotnetNewDetailsTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ public void CannotDisplayUnknownPackageDetails()
4545
{
4646
return;
4747
}
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)
4952
.WithCustomHive(CreateTemporaryFolder(folderName: "Home"))
5053
.WithWorkingDirectory(CreateTemporaryFolder())
5154
.Execute()
5255
.Should()
5356
.ExitWith(103)
5457
.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}.");
5659
}
5760
}
5861
}

0 commit comments

Comments
 (0)