public void MetricsDataPropertiesAreCopied(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
        {
            var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);

            Assert.Equal(metricsData.MetricType, actual.Properties["MetricType"]);
            Assert.Equal(metricsData.MetricName, actual.Properties["MetricName"]);

            foreach (var value in metricsData.Values)
            {
                Assert.Equal(value.FormattedValue, actual.Properties[value.Name]);
            }
        }
 public void LoggerNameIsCopied(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
 {
     var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);
     Assert.Equal(loggerName, actual.LoggerName);
 }
 public void TicksIsCreated(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
 {
     var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);
     Assert.Equal(dateTime.Ticks.ToString("D"), actual.Properties["Ticks"]);
 }
 public void LevelIsInfo(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
 {
     var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);
     Assert.Equal(Level.Info, actual.Level);
 }
        public void MetricsDataPropertiesAreCopied(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
        {
            var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);

            Assert.Equal(metricsData.MetricType, actual.Properties["MetricType"]);
            Assert.Equal(metricsData.MetricName, actual.Properties["MetricName"]);

            foreach (var value in metricsData.Values)
            {
                Assert.Equal(value.FormattedValue, actual.Properties[value.Name]);
            }
        }
        public void TicksIsCreated(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
        {
            var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);

            Assert.Equal(dateTime.Ticks.ToString("D"), actual.Properties["Ticks"]);
        }
        public void LoggerNameIsCopied(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
        {
            var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);

            Assert.Equal(loggerName, actual.LoggerName);
        }
        public void LevelIsInfo(string loggerName, DateTime dateTime, MetricsData metricsData, LoggingEventMapper sut)
        {
            var actual = sut.MapToLoggingEvent(loggerName, dateTime, metricsData);

            Assert.Equal(Level.Info, actual.Level);
        }