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

Commit

Permalink
Refactored some of the integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Mar 27, 2017
1 parent e5f86f5 commit fe0b8bc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions GraphQLinq.Tests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ public void SelectingLocationsDoesNotReturnPhones()
var query = superChargersContext.Locations(type: locationTypes);

var locations = query.ToList();

var locationsWithPhones = locations.Where(location => location.salesPhone != null).ToList();
CollectionAssert.IsEmpty(locationsWithPhones);
Assert.That(locations, Is.All.Matches<Location>(l => l.salesPhone == null));
}

[Test]
Expand All @@ -46,8 +44,7 @@ public void SelectingLocationsAndIncludingPhonesReturnsPhones()

var locations = query.ToList();

var locationsWithNullPhones = locations.Where(location => location.salesPhone == null).ToList();
CollectionAssert.IsEmpty(locationsWithNullPhones);
Assert.That(locations, Is.All.Matches<Location>(l => l.salesPhone != null));
}

[Test]
Expand Down

0 comments on commit fe0b8bc

Please sign in to comment.