1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 08:22:53 +00:00

Remove duplicate warnings from testing output

This commit is contained in:
Jkorf
2026-07-21 16:39:30 +02:00
parent 007743f5a1
commit e078a373da
@@ -142,7 +142,7 @@ namespace CryptoExchange.Net.Testing
var issues = SystemTextJsonComparer.CompareData(expressionBody.Method.Name, data, originalData, compareNestedProperty, ignoreProperties, useSingleArrayItem ?? false);
foreach(var issue in issues)
{
if (issue is MissingPropertyException)
if (issue is MissingPropertyException && !warnings?.Any(x => x.Message == issue.Message) == true)
warnings?.Add(issue);
else
errors.Add(issue);