public void Test_ToString_Valid() { var date = new DateTime(2020, 12, 25, 10, 15, 0); var tele = new cTelemetryEntry(date, 1, 15.0f); Assert.Equal("Timestamp: 25/12/2020 10:15:00 ID: 01 Value: 15.000000", tele.ToString()); }
public void Test_ToString_Invalid() { var tele = new cTelemetryEntry(); Assert.Equal("*Timestamp: 01/01/0001 00:00:00 ID: 00 Value: 0.000000", tele.ToString()); }