Aqueduct.Monitoring.Tests.CountSensorTests.Increment_AddsNumberReadingToNotificationProcessor C# (CSharp) Метод

Increment_AddsNumberReadingToNotificationProcessor() приватный Метод

private Increment_AddsNumberReadingToNotificationProcessor ( ) : void
Результат void
        public void Increment_AddsNumberReadingToNotificationProcessor()
        {
            var sensor = GetSensor();
            sensor.Increment();

            Assert.That(ReadingPublisher.Readings.Count, Is.EqualTo(1));

            Reading reading = null;
            ReadingPublisher.Readings.TryDequeue(out reading);
            Assert.That(reading.Data.GetValue(), Is.EqualTo(1));
        }