diff --git a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj
index 9fc3719d..8333afbe 100644
--- a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj
+++ b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj
@@ -44,4 +44,10 @@
+
+
+ PreserveNewest
+
+
+
diff --git a/src/ConfigCat.Client.Tests/ConfigV6EvaluationTests.cs b/src/ConfigCat.Client.Tests/ConfigV6EvaluationTests.cs
index 902eece8..7a334197 100644
--- a/src/ConfigCat.Client.Tests/ConfigV6EvaluationTests.cs
+++ b/src/ConfigCat.Client.Tests/ConfigV6EvaluationTests.cs
@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
+using System.Threading.Tasks;
+using ConfigCat.Client.Configuration;
using ConfigCat.Client.Evaluation;
using ConfigCat.Client.Tests.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using Moq;
namespace ConfigCat.Client.Tests;
@@ -92,21 +94,15 @@ public void SegmentMatrixTests(string configLocation, string settingKey, string
[TestMethod]
public void CircularDependencyTest()
{
- var config = new ConfigLocation.LocalFile("data", "sample_circulardependency_v6.json").FetchConfig();
+ var config = new ConfigLocation.LocalFile("data", "test_circulardependency_v6.json").FetchConfig();
- var logEvents = new List<(LogLevel Level, LogEventId EventId, FormattableLogMessage Message, Exception? Exception)>();
+ var logEvents = new List();
+ var logger = LoggingHelper.CreateCapturingLogger(logEvents);
- var loggerMock = new Mock();
- loggerMock.SetupGet(logger => logger.LogLevel).Returns(LogLevel.Info);
- loggerMock.Setup(logger => logger.Log(It.IsAny(), It.IsAny(), ref It.Ref.IsAny, It.IsAny()))
- .Callback(delegate (LogLevel level, LogEventId eventId, ref FormattableLogMessage msg, Exception ex) { logEvents.Add((level, eventId, msg, ex)); });
-
- var loggerWrapper = loggerMock.Object.AsWrapper();
-
- var evaluator = new RolloutEvaluator(loggerWrapper);
+ var evaluator = new RolloutEvaluator(logger);
const string key = "key1";
- var evaluationDetails = evaluator.Evaluate