public void ValidateTracks_ValidTracks_PrintsCalculatedVelocity() { //Adds fake data to list _fakeTrackDataList.Add(_fakeTrackDataValid1); _filtering.ValidateTracks(_fakeTrackDataList); _fakeTrackDataList.Clear(); _fakeTrackDataList.Add(_fakeTrackDataValid2); _filtering.ValidateTracks(_fakeTrackDataList); _trackRendition.Received().Print(Arg.Is <List <ITrackData> >(data => data[0].Tag == "JAS002" && data[0].Velocity == (int)141)); }
public void TrackRendition_IsCalled_True() { var uut = new TrackUpdate(_trackRendition, _proximityDetection); uut.Update(_trackData); _trackRendition.Received().Print(_trackData); }
public void RaisedEvent_ValidTracks_CorrectTrackCount() { RaiseFakeEvent(); _trackRendition.Received().Print(Arg.Is <List <ITrackData> >(data => data.Count == 1)); }
public void NoPreviousElement_In_TrackUpdater_TrackRendition() { RaiseFakeTransponderReceiverEvent_Success(); trackRendition.Received().RenderTrack(Arg.Is <List <TrackObject> >(data => data[0].Course == 0 && data[0].Velocity == 0)); }