Esempio n. 1
0
        public void Conv_Initialize_InvalidArgs_Throws()
        {
            var    testSubject = new CoverageReportConverter();
            Action op          = () => testSubject.Initialize(null);

            op.ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("logger");
        }
Esempio n. 2
0
        public void Initialize_CanGetGetExeToolPathFromSetupConfigurationForBuildAgent()
        {
            // Arrange
            var logger = new TestLogger();

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

            var reporter = new CoverageReportConverter(factory);

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

            // Assert
            Assert.IsTrue(result);

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