Add a test to ensure 1.0 and 1.1 packages are available in the nuget cache on first run.

This commit is contained in:
Eric Erhardt 2017-01-07 08:43:28 -06:00
parent 0cfc54c377
commit 10f70dd034

View file

@ -110,9 +110,17 @@ A command is running to initially populate your local package cache, to improve
_nugetCacheFolder
.Should()
.HaveDirectories(expectedDirectories);
_nugetCacheFolder
.GetDirectory("system.runtime")
.Should().HaveDirectories(new string[] { "4.1.0", "4.3.0" });
_nugetCacheFolder
.GetDirectory("microsoft.aspnetcore.mvc")
.Should().HaveDirectories(new string[] { "1.0.1", "1.1.0" });
}
private string GetDotnetVersion()
private string GetDotnetVersion()
{
return new DotnetCommand().ExecuteWithCapturedOutput("--version").StdOut
.TrimEnd(Environment.NewLine.ToCharArray());