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); }
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(); }
public void TearDown() { SensorBase.SetThreadScopedFeatureName(null); ReadingPublisher.Reset(); }
public void Teardown() { ReadingPublisher.Reset(); }