示例#1
0
        public void ToolsCanAccessDependencyContextProperly()
        {
            var appDirectory = Path.Combine(_testProjectsRoot, "DependencyContextFromTool");

            CommandResult result = new DependencyContextTestCommand()
            {
                WorkingDirectory = appDirectory
            }
            .Execute(Path.Combine(appDirectory, "project.json"));

            result.Should().Pass();
        }
示例#2
0
        public void ToolsCanAccessDependencyContextProperly()
        {
            var testInstance = TestAssetsManager.CreateTestInstance("DependencyContextFromTool").WithLockFiles();

            var appDirectory = testInstance.Path;

            CommandResult result = new DependencyContextTestCommand()
            {
                WorkingDirectory = appDirectory
            }
            .Execute(Path.Combine(appDirectory, "project.json"));

            result.Should().Pass();
        }
        public void ToolsCanAccessDependencyContextProperly()
        {
            var appDirectory = Path.Combine(_testProjectsRoot, "DependencyContextFromTool");

            CommandResult result = new DependencyContextTestCommand() { WorkingDirectory = appDirectory }
                .Execute(Path.Combine(appDirectory, "project.json"));

            result.Should().Pass();
        }