public void TestwithLotsofFailures() { var response = Request.RestRequest("https://api.exchangeratesapi.io/", "2010-01-14", "GET"); List <string> ignoredFields = new List <string> { "date" }; Assert.True(CompareUtilities.CompareObjects(response, CompareUtilities.ReadCachedJson("NewObjCurrencyByDate2010-01-15"), "Date2010-01-15-failures", ignoredFields)); }
public void TestwithJsonCompareShouldPass() { var response = Request.RestRequest("https://api.exchangeratesapi.io/", "2010-01-14", "GET"); Assert.True(CompareUtilities.CompareObjects(response, CompareUtilities.ReadCachedJson("CurrencyByDate2010-01-14"), "Date2010-01-14")); }