public void Should_Read_Rule_Url() { // Given var fixture = new InspectCodeIssuesProviderFixture("WithWikiUrl.xml"); // When var issues = fixture.ReadIssues().ToList(); // Then issues.Count.ShouldBe(1); var issue = issues.Single(); CheckIssue( issue, @"src\Cake.CodeAnalysisReporting\CodeAnalysisReportingAliases.cs", 3, "RedundantUsingDirective", "http://www.jetbrains.com/resharperplatform/help?Keyword=RedundantUsingDirective", 0, @"Using directive is not required by the code and can be safely removed"); }
public void Should_Read_Issue_Correct() { // Given var fixture = new InspectCodeIssuesProviderFixture("inspectcode.xml"); // When var issues = fixture.ReadIssues().ToList(); // Then issues.Count.ShouldBe(1); var issue = issues.Single(); CheckIssue( issue, @"src\Cake.Prca\CakeAliasConstants.cs", 16, "UnusedMember.Global", null, 0, @"Constant 'PullRequestSystemCakeAliasCategory' is never used"); }