Last active
August 29, 2015 14:18
-
-
Save swegner/4d6932b8b60d2d1338d9 to your computer and use it in GitHub Desktop.
Interview question prompt for: http://www.heyswegner.com/2015/04/good-interview-questions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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