public void DetermineSeparationEvent_SeparationEventIsRaised_EventIsRaised(double X1, double X2, double Y1, double Y2, double alt1, double alt2) { bool wasRaised = false; _uut.SeparationEvent += (o, e) => wasRaised = true; PlanesInAirspace.ElementAt(0).Value[1].Position.X = X1; PlanesInAirspace.ElementAt(1).Value[1].Position.X = X2; PlanesInAirspace.ElementAt(0).Value[1].Position.Y = Y1; PlanesInAirspace.ElementAt(1).Value[1].Position.Y = Y2; PlanesInAirspace.ElementAt(0).Value[1].Altitude = alt1; PlanesInAirspace.ElementAt(1).Value[1].Altitude = alt2; _uut.MonitorSeparation(PlanesInAirspace); Assert.IsTrue(wasRaised); }