This commit is contained in:
@@ -108,11 +108,11 @@ namespace raven_integration
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Ensure the expected items are returned
|
//Ensure the expected items are returned
|
||||||
MatchingIdList.Should().Contain(MatchWidgetInNotesId, "ShouldContainFirstWidget");
|
MatchingIdList.Should().Contain(MatchWidgetInNotesId, "ShouldContainMatchWidgetInNotesId");
|
||||||
MatchingIdList.Should().Contain(MatchWidgetInNameId, "ShouldContainSecondWidget");
|
MatchingIdList.Should().Contain(MatchWidgetInNameId, "ShouldContainMatchWidgetInNameId");
|
||||||
MatchingIdList.Should().Contain(MatchUserInNotesId, "ShouldContainUserNotesMatch");
|
MatchingIdList.Should().Contain(MatchUserInNotesId, "ShouldContainMatchUserInNotesId");
|
||||||
MatchingIdList.Should().Contain(MatchUserInNameId, "ShouldContainUserNameMatch");
|
MatchingIdList.Should().Contain(MatchUserInNameId, "ShouldContainMatchUserInNameId");
|
||||||
MatchingIdList.Should().NotContain(MatchNothingWidgetId, "ShouldNotContainThirdWidget");
|
MatchingIdList.Should().NotContain(MatchNothingWidgetId, "ShouldNotContainMatchNothingWidgetId");
|
||||||
|
|
||||||
//Assert the order (roughly, this is kind of a waste of time, either the code is sorting or not, it's not going to change)
|
//Assert the order (roughly, this is kind of a waste of time, either the code is sorting or not, it's not going to change)
|
||||||
//first item must be a widget
|
//first item must be a widget
|
||||||
@@ -145,7 +145,16 @@ namespace raven_integration
|
|||||||
Util.ValidateDataReturnResponseOk(a);
|
Util.ValidateDataReturnResponseOk(a);
|
||||||
((JArray)a.ObjectResponse["result"]).Count.Should().BeGreaterOrEqualTo(2);
|
((JArray)a.ObjectResponse["result"]).Count.Should().BeGreaterOrEqualTo(2);
|
||||||
//Check that list does *not* include the notes only records
|
//Check that list does *not* include the notes only records
|
||||||
|
MatchingIdList = new List<long>();
|
||||||
|
foreach (JObject j in v)
|
||||||
|
{
|
||||||
|
MatchingIdList.Add(j["id"].Value<long>());
|
||||||
|
}
|
||||||
|
MatchingIdList.Should().NotContain(MatchWidgetInNotesId, "ShouldNotContainMatchWidgetInNotesId");
|
||||||
|
MatchingIdList.Should().Contain(MatchWidgetInNameId, "ShouldContainMatchWidgetInNameId");
|
||||||
|
MatchingIdList.Should().NotContain(MatchUserInNotesId, "ShouldContainMatchUserInNotesId");
|
||||||
|
MatchingIdList.Should().Contain(MatchUserInNameId, "ShouldContainMatchUserInNameId");
|
||||||
|
MatchingIdList.Should().NotContain(MatchNothingWidgetId, "ShouldNotContainThirdWidget");
|
||||||
|
|
||||||
|
|
||||||
}//eot
|
}//eot
|
||||||
|
|||||||
Reference in New Issue
Block a user