Skip to content

Commit 028145b

Browse files
Fix test
1 parent 6c7d245 commit 028145b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FineCodeCoverageTests/FCCEngine_Tests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using FineCodeCoverage.Engine.MsTestPlatform;
1313
using FineCodeCoverage.Engine.ReportGenerator;
1414
using FineCodeCoverage.Impl;
15+
using FineCodeCoverage.Options;
1516
using Moq;
1617
using NUnit.Framework;
1718

@@ -109,6 +110,11 @@ public void SetUp()
109110
updateMarginTagsEvents.Add(e);
110111
updateMarginTagsCoverageLines.Add(fccEngine.CoverageLines);
111112
};
113+
114+
var mockedAppOptions = mocker.GetMock<IAppOptions>();
115+
mockedAppOptions.Setup(x => x.MsCodeCoverage).Returns(false);
116+
var mockAppOptionsProvider = mocker.GetMock<IAppOptionsProvider>();
117+
mockAppOptionsProvider.Setup(x => x.Get()).Returns(mockedAppOptions.Object);
112118
}
113119

114120
[Test]

0 commit comments

Comments
 (0)