Affected.Cli.Tests.OutputGenerationTests.When_using_output_name_should_create_file_with_extension C# (CSharp) Метод

When_using_output_name_should_create_file_with_extension() приватный Метод

private When_using_output_name_should_create_file_with_extension ( ) : Task
Результат Task
        public async Task When_using_output_name_should_create_file_with_extension()
        {
            // Create a project
            var projectName = "InventoryManagement";
            this.Repository.CreateCsProject(projectName);

            var (output, exitCode) =
                await this.InvokeAsync($"-p {Repository.Path} --dry-run --output-name to-build.whatever");

            Assert.Equal(0, exitCode);

            Assert.Contains($"WRITE {Path.Combine(Repository.Path, "to-build.whatever.proj")}", output);
        }
    }