Beispiel #1
0
        public void Reset_ClearsAllSubscribers()
        {
            ReadingPublisher.Subscribe(GetSubscriber((dataPoints) => Console.Write("Subscriber")));

            Assert.That(ReadingPublisher.Subscribers, Is.Not.Empty);

            ReadingPublisher.Reset();
            Assert.That(ReadingPublisher.Subscribers, Is.Empty);
        }
Beispiel #2
0
        public void Reset_ClearsAllMonitorReadings()
        {
            var reading = GetReading();

            ReadingPublisher.PublishReading(reading);

            ReadingPublisher.Reset();

            Assert.That(ReadingPublisher.Readings.Count, Is.EqualTo(0));
        }
 public void Teardown()
 {
     CountSensor.SetThreadScopedFeatureName(null);
     ReadingPublisher.Reset();
 }
Beispiel #4
0
 public void TearDown()
 {
     SensorBase.SetThreadScopedFeatureName(null);
     ReadingPublisher.Reset();
 }
 public void Teardown()
 {
     ReadingPublisher.Reset();
 }