Skip to content

Commit

Permalink
Tidy unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Jun 24, 2024
1 parent ef0e0e3 commit ad52465
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/TelemetryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Utilities;

namespace UnitTests
Expand All @@ -13,8 +14,8 @@ public class TelemetryTests : TestBase
private Dictionary<string, object> PrepTelemetryData(object data)
{
var privateType = new PrivateType(typeof(Logging));
var result = (Dictionary<string, object>)privateType.InvokeStatic("PrepareData", JToken.FromObject(data) );
return result;
var result = (Task<Dictionary<string, object>>)privateType.InvokeStatic("PrepareData", JToken.FromObject(data) );
return result.Result;
}

[TestMethod]
Expand Down

0 comments on commit ad52465

Please sign in to comment.