public void ControllerCallsCompassCourse_CalcCourse() { // Raise Event _relay.RelayEvent += Raise.EventWith(this, args); // Assertions _compasscourse.Received().CalcCourse(t); }
public void Test_Convert_Data_Funktion_CompassCourse() { // 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 _fakecompassCourse.Received(1); }