public void Update_AddTracks_CourseCalledWithCorrectTracks(int nCalls,
                                                                   int idx1, int idx2)
        {
            // Act
            _uut.Update(_tracks);

            // Assert
            _courseCalculator.Received(nCalls)
            .Calculate(Arg.Is <List <Track> >(
                           x => x.Contains(_tracks[idx1]) && x.Contains(_tracks[idx2])));
        }
 public void TrackWarehouse_CourseCalculate_WasCalledCorrectly()
 {
     //Assert
     _courseCalculator.Received().Calculate(Arg.Is <List <Track> >(x => x.Contains(_recievedTracks[0]) && x.Count == 1));
 }