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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user