diff --git a/FineCodeCoverageTests/CoverletDataCollectorUtil_RunAsync_Tests.cs b/FineCodeCoverageTests/CoverletDataCollectorUtil_RunAsync_Tests.cs index 664dbf8b..7d554e82 100644 --- a/FineCodeCoverageTests/CoverletDataCollectorUtil_RunAsync_Tests.cs +++ b/FineCodeCoverageTests/CoverletDataCollectorUtil_RunAsync_Tests.cs @@ -36,6 +36,7 @@ public void SetUp() mockCoverageProject.Setup(cp => cp.Settings).Returns(new Mock().Object); mockCoverageProject.Setup(cp => cp.CoverageOutputFolder).Returns(""); mockCoverageProject.Setup(cp => cp.ExcludedReferencedProjects).Returns(new List()); + mockCoverageProject.Setup(cp => cp.IncludedReferencedProjects).Returns(new List()); mockRunSettingsCoverletConfiguration = new Mock(); coverletDataCollectorUtil.runSettingsCoverletConfiguration = mockRunSettingsCoverletConfiguration.Object; coverletDataCollectorUtil.coverageProject = mockCoverageProject.Object; @@ -78,7 +79,7 @@ public async Task Should_Get_Settings_With_Exclude_From_CoverageProject_And_RunS mockCoverageProject.Setup(cp => cp.ExcludedReferencedProjects).Returns(referencedExcluded); mockRunSettingsCoverletConfiguration.Setup(rsc => rsc.Exclude).Returns("rsexclude"); await coverletDataCollectorUtil.RunAsync(false); - mockDataCollectorSettingsBuilder.Verify(b => b.WithExclude(new string[] { "referencedExcluded","excluded"},"rsexclude")); + mockDataCollectorSettingsBuilder.Verify(b => b.WithExclude(new string[] { "[referencedExcluded]*","excluded"},"rsexclude")); } [Test] @@ -89,7 +90,7 @@ public async Task Should_Not_Throw_When_Project_Setttings_Exclude_Is_Null() mockCoverageProject.Setup(cp => cp.CoverageOutputFolder).Returns(""); mockRunSettingsCoverletConfiguration.Setup(rsc => rsc.Exclude).Returns("rsexclude"); await coverletDataCollectorUtil.RunAsync(false); - mockDataCollectorSettingsBuilder.Verify(b => b.WithExclude(new string[] { "referencedExcluded"}, "rsexclude")); + mockDataCollectorSettingsBuilder.Verify(b => b.WithExclude(new string[] { "[referencedExcluded]*"}, "rsexclude")); } [Test]