public void TelemetryTestService_EventWithParametersTest(TelemetryArea area, string eventName) {
     var telemetryService = new TelemetryTestService();
     telemetryService.ReportEvent(area, eventName, new { parameter = "value" });
     string log = telemetryService.SessionLog;
     log.Should().Be(TelemetryTestService.EventNamePrefixString + area.ToString() + "/" + eventName +
                     "\r\n\t" + TelemetryTestService.PropertyNamePrefixString + area.ToString() + ".parameter : value\r\n");
 }
示例#2
0
        public void TelemetryTestService_SimpleEventTest(TelemetryArea area, string eventName)
        {
            var telemetryService = new TelemetryTestService();

            telemetryService.ReportEvent(area, eventName);
            string log = telemetryService.SessionLog;

            log.Should().Be(TelemetryTestService.EventNamePrefixString + area.ToString() + "/" + eventName + "\r\n");
        }
示例#3
0
        public void TelemetryTestService_EventWithParametersTest(TelemetryArea area, string eventName)
        {
            var telemetryService = new TelemetryTestService();

            telemetryService.ReportEvent(area, eventName, new { parameter = "value" });
            string log = telemetryService.SessionLog;

            log.Should().Be(TelemetryTestService.EventNamePrefixString + area.ToString() + "/" + eventName +
                            "\r\n\t" + TelemetryTestService.PropertyNamePrefixString + area.ToString() + ".parameter : value\r\n");
        }
 public void TelemetryTestService_SimpleEventTest(TelemetryArea area, string eventName) {
     var telemetryService = new TelemetryTestService();
     telemetryService.ReportEvent(area, eventName);
     string log = telemetryService.SessionLog;
     log.Should().Be(TelemetryTestService.EventNamePrefixString + area.ToString() + "/" + eventName + "\r\n");
 }