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

Fixed incorrect check test output

This commit is contained in:
Jkorf
2026-07-29 13:05:42 +02:00
parent 9be8798ccf
commit 2141ad9061
@@ -142,11 +142,16 @@ 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 && !warnings?.Any(x => x.Message == issue.Message) == true)
if (issue is MissingPropertyException)
{
if (!warnings?.Any(x => x.Message == issue.Message) == true)
warnings?.Add(issue);
}
else
{
errors.Add(issue);
}
}
if (errors.Count > 0)
throw new AggregateException(errors);