Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Change agency id so that the test doesn't fail when agency isn't foun…
Browse files Browse the repository at this point in the history
…d on server.
  • Loading branch information
Giorgi committed Apr 2, 2017
1 parent 2c2eba1 commit 84a14ca
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions GraphQLinq.Tests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,23 @@ public void SelectingListOfListNestedPropertyShouldCheckListTypeRecursively()
{
Agency agency = null;

Assert.Multiple(() =>
var agencyId = "234083";
Assert.DoesNotThrow(() => agency = hslGraphContext.Agency(agencyId).Include(a => a.routes.Select(route => route.trips.Select(trip => trip.geometry))).ToItem());

if (agency == null)
{
Assert.DoesNotThrow(() => agency = hslGraphContext.Agency("232919").Include(a => a.routes.Select(route => route.trips.Select(trip => trip.geometry))).ToItem());
CollectionAssert.IsNotEmpty(agency.routes[0].trips[0].geometry);
CollectionAssert.IsNotEmpty(agency.routes[1].trips[0].geometry);
});
Assert.Inconclusive($"Agency with id {agencyId} not found");
}
else
{
Assert.Multiple(() =>
{
{
CollectionAssert.IsNotEmpty(agency.routes[0].trips[0].geometry);
CollectionAssert.IsNotEmpty(agency.routes[1].trips[0].geometry);
}
});
}
}
}

Expand Down

0 comments on commit 84a14ca

Please sign in to comment.