public void ConditionDetectedTestLogger(int num) { _logger = Substitute.For <ILogger>(); _trafficController = new ConsoleAirTrafficController(); _uutOutputter.Logger = _logger; _uutOutputter.TrafficController = _trafficController; _uutOutputter.ConditionDetected(FakeConditionFactory.CreateConditionList(num)); _uutOutputter.Logger.Received(num).LogCondition(Arg.Any <ITrack>(), Arg.Any <ITrack>()); }