-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make JTokenDifferentiator
an instance class
#63
Conversation
@@ -74,7 +82,7 @@ private static Difference CompareExpectedItems(JArray actual, JArray expected, J | |||
bool match = false; | |||
for (int actualIndex = matchingIndex; actualIndex < actualChildren.Length; actualIndex++) | |||
{ | |||
var difference = FindFirstDifference(actualChildren[actualIndex], expectedChild, true, config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CompareExpectedItems
is only called when ignoreExtraProperties
is true
, so the three true
literals in this method always corresponds to the value of ignoreExtraProperties
.
@@ -117,8 +124,7 @@ private static Difference CompareExpectedItems(JArray actual, JArray expected, J | |||
|
|||
for (int i = 0; i < actualChildren.Length; i++) | |||
{ | |||
Difference firstDifference = FindFirstDifference(actualChildren[i], expectedChildren[i], | |||
path.AddIndex(i), false, config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CompareItems
is only called when ignoreExtraProperties
is false
.
Pull Request Test Coverage Report for Build 1903789818
💛 - Coveralls |
d35d92a
to
e9e4310
Compare
Make
JTokenDifferentiator
an instance class to reduce the number of arguments passed around.