Skip to content

Commit 07b8bbb

Browse files
missed file
1 parent ce40ae0 commit 07b8bbb

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/LCT.Common.UTests/TelemetryHelperTests.cs

+15-15
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ public void TearDown()
4040
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true });
4141

4242
}
43-
//[Test]
44-
//public void StartTelemetry_ShouldInitializeAndTrackEvent_WhenTelemetryIsEnabled()
45-
//{
46-
// // Arrange
47-
// string catoolVersion = "1.0.0";
48-
// var kpiData = new { Metric1 = 100, Metric2 = 200 }; // Example KPI data
49-
// string telemetryFor = "TestEvent";
50-
// var consoleOutput = new System.IO.StringWriter();
51-
// Console.SetOut(consoleOutput);
52-
// // Act
53-
// // This would normally start telemetry tracking in your system
54-
// telemetryHelper.StartTelemetry(catoolVersion, kpiData, telemetryFor);
43+
[Test]
44+
public void StartTelemetry_ShouldInitializeAndTrackEvent_WhenTelemetryIsEnabled()
45+
{
46+
// Arrange
47+
string catoolVersion = "1.0.0";
48+
var kpiData = new { Metric1 = 100, Metric2 = 200 }; // Example KPI data
49+
string telemetryFor = "TestEvent";
50+
var consoleOutput = new System.IO.StringWriter();
51+
Console.SetOut(consoleOutput);
52+
// Act
53+
// This would normally start telemetry tracking in your system
54+
telemetryHelper.StartTelemetry(catoolVersion, kpiData, telemetryFor);
5555

56-
// string output = consoleOutput.ToString();
57-
// Assert.AreEqual(output,"");
58-
//}
56+
string output = consoleOutput.ToString();
57+
Assert.AreEqual(output, "");
58+
}
5959
}
6060
}

0 commit comments

Comments
 (0)