Skip to content

Instantly share code, notes, and snippets.

@swegner
Last active August 29, 2015 14:18
Show Gist options
  • Save swegner/4d6932b8b60d2d1338d9 to your computer and use it in GitHub Desktop.
Save swegner/4d6932b8b60d2d1338d9 to your computer and use it in GitHub Desktop.
[TestMethod]
public void FlightsIsolatedOnMultipleFeatureAreas()
{
var abFlight = new Flight(new[] { "A", "B" }, trafficPercent: 100);
var bcFlight = new Flight(new[] { "B", "C" }, trafficPercent: 100);
var cFlight = new Flight(new[] { "C" }, trafficPercent: 100);
_assignmentService.Add(abFlight);
_assignmentService.Add(bcFlight);
_assignmentService.Add(cFlight);
var assignments = _assignmentService.GetFlights(_user).ToList();
Assert.AreEqual(2, assignments.Count);
CollectionAssert.Contains(assignments, abFlight);
CollectionAssert.Contains(assignments, cFlight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment