コード例 #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();
        }
コード例 #3
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();
        }