Clean up test warnings (#1882)

This commit is contained in:
James Newton-King
2018-10-15 13:41:57 +13:00
committed by GitHub
parent 0ce23ff924
commit faaa23eb9e
3 changed files with 10 additions and 12 deletions
@@ -1541,7 +1541,12 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
foreach (var item in StrictMatchTestData())
{
yield return new object[] { item[0], item[1], item[2] };
yield return new object[] { item[1], item[0], item[2] };
if (!item[0].Equals(item[1]))
{
// Test the inverse
yield return new object[] { item[1], item[0], item[2] };
}
}
}
@@ -1558,7 +1563,6 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
yield return new object[] { "1", "null", false };
yield return new object[] { "null", "null", true };
yield return new object[] { "null", "'null'", false };
yield return new object[] { "null", "1", false };
}
}
}