Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini committed Mar 9, 2023
1 parent 7be5751 commit 07949ea
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -101,11 +101,10 @@ public void ShouldAnalyzeTree_GeneratedFile_ShouldAnalyzeGeneratedProvider_IsCac
sut.ShouldAnalyzeTree(tree, CSharpGeneratedCodeRecognizer.Instance).Should().BeTrue();

// GetText should be called every time ShouldAnalyzeGenerated is called...
additionalText.Verify(x => x.GetText(It.IsAny<CancellationToken>()), Times.Exactly(6)); // TEMPORARILY BUMPED TO 6
sonarLintXml.ToStringCallCount.Should().Be(2); // ... but we should only try to read the file once // TEMPORARILY BUMPED TO 2
additionalText.Verify(x => x.GetText(It.IsAny<CancellationToken>()), Times.Exactly(3));
sonarLintXml.ToStringCallCount.Should().Be(1); // ... but we should only try to read the file once
}

[Ignore("Temporarely ignored until the new SonarLintXmlReader will be used to access all properties.")]
[DataTestMethod]
[DataRow(GeneratedFileName, false)]
[DataRow(OtherFileName, true)]
Expand Down Expand Up @@ -136,7 +135,6 @@ public void ShouldAnalyzeTree_GeneratedFile_AnalyzeGenerated_AnalyzeAllFiles(str
sut.ShouldAnalyzeTree(tree, CSharpGeneratedCodeRecognizer.Instance).Should().BeTrue();
}

[Ignore("Temporarely ignored until the new SonarLintXmlReader will be used to access all properties.")]
[DataTestMethod]
[DataRow(GeneratedFileName, LanguageNames.CSharp, false)]
[DataRow(OtherFileName, LanguageNames.CSharp, true)]
Expand Down

0 comments on commit 07949ea

Please sign in to comment.