@@ -40,21 +40,21 @@ public void TearDown()
40
40
Console . SetOut ( new StreamWriter ( Console . OpenStandardOutput ( ) ) { AutoFlush = true } ) ;
41
41
42
42
}
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 ) ;
55
55
56
- // string output = consoleOutput.ToString();
57
- // Assert.AreEqual(output,"");
58
- // }
56
+ string output = consoleOutput . ToString ( ) ;
57
+ Assert . AreEqual ( output , "" ) ;
58
+ }
59
59
}
60
60
}
0 commit comments