public void Should_Read_Basic_Issues_Correct()
            {
                // Given
                var fixture = new TerraformProviderFixture("basic.json", @"./");

                // When
                var issues = fixture.ReadIssues().ToList();

                // Then
                issues.Count.ShouldBe(2);
                IssueChecker.Check(
                    issues[0],
                    IssueBuilder.NewIssue(
                        "\"anonymous\": [DEPRECATED] For versions later than 3.0.0, absence of a token enables this mode",
                        "Cake.Issues.Terraform.TerraformIssuesProvider",
                        "Terraform")
                    .WithPriority(IssuePriority.Warning));
                IssueChecker.Check(
                    issues[1],
                    IssueBuilder.NewIssue(
                        "The argument \"name\" is required, but no definition was found.",
                        "Cake.Issues.Terraform.TerraformIssuesProvider",
                        "Terraform")
                    .InFile("main.tf", 14, 14, 37, 37)
                    .OfRule("Missing required argument")
                    .WithPriority(IssuePriority.Error));
            }
            public void Should_Read_Error_Correct()
            {
                // Given
                var fixture = new TerraformProviderFixture("error.json", @"./");

                // When
                var issues = fixture.ReadIssues().ToList();

                // Then
                issues.Count.ShouldBe(1);
                IssueChecker.Check(
                    issues[0],
                    IssueBuilder.NewIssue(
                        "\nPlugin reinitialization required...",
                        "Cake.Issues.Terraform.TerraformIssuesProvider",
                        "Terraform")
                    .OfRule("Could not load plugin")
                    .WithPriority(IssuePriority.Error));
            }