Fixing a test that needed the lock file now that that's what we use for tools.

This commit is contained in:
Livar Cunha 2016-10-03 16:15:56 -07:00
parent b4b89c7849
commit e5f6107d88
2 changed files with 5 additions and 2 deletions

View file

@ -220,7 +220,10 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
File.WriteAllText(depsJsonFile, "temp");
var projectToolsCommandResolver = SetupProjectToolsCommandResolver();
projectToolsCommandResolver.GenerateDepsJsonFile(lockFile, depsJsonFile);
projectToolsCommandResolver.GenerateDepsJsonFile(lockFile, depsJsonFile, new LockFileTargetLibrary {
Name = "dotnet-portable",
Version = new NuGetVersion("1.0.0")
});
File.ReadAllText(depsJsonFile).Should().Be("temp");
File.Delete(depsJsonFile);

View file

@ -178,7 +178,7 @@ namespace Microsoft.DotNet.Tests
[Fact]
public void ToolsCanAccessDependencyContextProperly()
{
var testInstance = TestAssetsManager.CreateTestInstance("DependencyContextFromTool");
var testInstance = TestAssetsManager.CreateTestInstance("DependencyContextFromTool").WithLockFiles();
var appDirectory = testInstance.Path;