public void ListHandler_UpdateVelocity_ReceivedCorrect() { _newTracks.Add(Substitute.For <ITrackObject>()); ITrackObject trackOne = Substitute.For <ITrackObject>(); trackOne.Tag.Returns("HDJ232"); // Renew to update _uut.Renew(_newTracks); _uut.Update(_newTracks); _velocity.Received().CurrentVelocity(_newTracks[0], _uut.CurrentTracks[0], _distance); }
public void Test_Convert_Data_Funktion_Velocity() { // Arrange Airplane airplane = new Airplane(); airplane._tag = "XYZ987"; airplane._xCoordiante = 2559; airplane._yCoordiante = 7565; airplane._Altitude = 4000; airplane._Time = DateTime.ParseExact("20151006213456789", "yyyyMMddHHmmssfff", CultureInfo.InvariantCulture); _uut.oldAirplanes.Add(airplane); // Act List <string> testData = new List <string>(); testData.Add("XYZ987;2600;7600;4000;20151006213459789"); _uut.convertdata(testData); // Assert _fakevelocity.Received(1); }