From 10f70dd034a71e5fcb643a701158633834e4ec3b Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Sat, 7 Jan 2017 08:43:28 -0600 Subject: [PATCH] Add a test to ensure 1.0 and 1.1 packages are available in the nuget cache on first run. --- .../GivenThatTheUserIsRunningDotNetForTheFirstTime.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs b/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs index 13cf01695..6cbb7cae8 100644 --- a/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs +++ b/test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs @@ -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());