Skip to content

Commit

Permalink
Fix errors after re-base
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Oct 31, 2023
1 parent 2b0b966 commit 6d35ed8
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,33 +118,6 @@ public void Conv_FailsIfFileConverterReturnsAnErrorCode()
File.Exists(outputFilePath).Should().BeFalse("Not expecting the output file to exist");
}

[TestMethod]
public void Initialize_CanGetGetExeToolPathFromSetupConfigurationForBuildAgent()
{
// Arrange
var logger = new TestLogger();

var factory = CreateVisualStudioSetupConfigurationFactory("Microsoft.VisualStudio.TestTools.CodeCoverage.Msi");

var reporter = new BinaryToXmlCoverageReportConverter(factory, logger, new AnalysisConfig());

// Act
var result = reporter.Initialize();

// Assert
result.Should().BeTrue();

logger.AssertDebugLogged("Code coverage command line tool: x:\\foo\\Team Tools\\Dynamic Code Coverage Tools\\CodeCoverage.exe");
}

[TestMethod]
public void GetRegistryPath_When64BitProcess_Returns64BitPath() =>
BinaryToXmlCoverageReportConverter.GetVsRegistryPath(true).Should().Be(@"SOFTWARE\Wow6432Node\Microsoft\VisualStudio");

[TestMethod]
public void GetRegistryPath_When32BitProcess_Returns32BitPath() =>
BinaryToXmlCoverageReportConverter.GetVsRegistryPath(false).Should().Be(@"SOFTWARE\Microsoft\VisualStudio");

[CodeCoverageExeTestMethod]
[DeploymentItem(@"Resources\Sample.coverage")]
[DeploymentItem(@"Resources\Expected.xmlcoverage")]
Expand Down

0 comments on commit 6d35ed8

Please sign in to comment.