Esempio n. 1
0
 private static void ValidateSingleEventCounter(Event evt, string counterName, int count, float sum, float sumSquared, float min, float max)
 {
     object payload = ValidateEventHeaderAndGetPayload(evt);
     var payloadContent = payload as IDictionary<string, object>;
     Assert.NotNull(payloadContent);
     ValidateEventCounter(counterName, count, sum, sumSquared, min, max, payloadContent);
 }
Esempio n. 2
0
 private static object ValidateEventHeaderAndGetPayload(Event evt)
 {
     Assert.Equal("EventCounters", evt.EventName);
     List<string> payloadNames = evt.PayloadNames.ToList();
     Assert.Equal(1, payloadNames.Count);
     Assert.Equal("Payload", payloadNames[0]);
     object rawPayload = evt.PayloadValue(0, "Payload");
     return rawPayload;
 }
Esempio n. 3
0
 private static void ValidateSingleEventCounter(Event evt, string counterName, int count, float mean, float standardDeviation, float min, float max)
 {
     ValidateEventCounter(counterName, count, mean, standardDeviation, min, max, ValidateEventHeaderAndGetPayload(evt));
 }