This commit is contained in:
@@ -152,6 +152,20 @@ namespace raven_integration
|
||||
|
||||
//assert contains at least two records
|
||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(1);
|
||||
var v = ((JArray)a.ObjectResponse["data"]);
|
||||
List<long> IDInResultList = new List<long>();
|
||||
int nActiveMatches = 0;
|
||||
int nInactiveMatches = 0;
|
||||
foreach (JObject o in v)
|
||||
{
|
||||
if (ActiveWidgetIdList.Contains(o["id"].Value<long>()))
|
||||
nActiveMatches++;
|
||||
if (NotActiveWidgetIdList.Contains(o["id"].Value<long>()))
|
||||
nInactiveMatches++;
|
||||
}
|
||||
|
||||
nActiveMatches.Should().Be(ActiveWidgetIdList.Count);
|
||||
nInactiveMatches.Should().Be(0);
|
||||
|
||||
//TODO: ensure the results match the appropriate matching widgetIDList made earlier
|
||||
|
||||
|
||||
Reference in New Issue
Block a user