Fixing a test that needed the lock file now that that's what we use for tools.
This commit is contained in:
parent
b4b89c7849
commit
e5f6107d88
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue