Affected.Cli.Tests.OutputGenerationTests.Should_create_file_at_repo_root C# (CSharp) Method

Should_create_file_at_repo_root() private method

private Should_create_file_at_repo_root ( ) : Task
return Task
        public async Task Should_create_file_at_repo_root()
        {
            // Create a project
            var projectName = "InventoryManagement";
            var msBuildProject = this.Repository.CreateCsProject(projectName);

            var (output, exitCode) =
                await this.InvokeAsync($"-p {Repository.Path} -f text");

            var destination = Path.Combine(Repository.Path, "affected.txt");
            var outputContents = await File.ReadAllTextAsync(destination);

            Assert.Equal(0, exitCode);

            Assert.Contains($"WRITE: {destination}", output);
            Assert.Contains(msBuildProject.FullPath, outputContents);
        }