Skip to content

Commit

Permalink
Update UnitTestBase.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Jan 2, 2025
1 parent 28a52dd commit c8fe355
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UnitTestsTeslalogger/UnitTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,10 @@ public void ParsePackCurrent()
dynamic j = JsonConvert.DeserializeObject(data);
dynamic jData = j["data"];

TelemetryConnection f = new TelemetryConnection(null);
Car c = new Car(0, "", "", 0, "", DateTime.Now, "", "", "", "", "", "", "", null, false);
WebHelper wh = c.webhelper;

TelemetryParser f = new TelemetryParser(c);
double? current = f.PackCurrent(jData, DateTime.Now);
Assert.AreEqual(current, 121.9d);

Expand Down

0 comments on commit c8fe355

Please sign in to comment.