public void QueueStats_AfterThreeItemsAdded_ShouldYieldCorectCountsThree() { var sut = new PerformanceRecord(It.IsAny<TimeSpan>()); sut.EventProcessed("A"); sut.EventProcessed("B"); sut.EventProcessed("A"); sut.QueueStats().Should().BeEquivalentTo(new Dictionary<string, long>{{"A",2},{"B",1}}); }
public void QueueStats_ForEmptyPerformanceRecord_ShouldYieldAnEmptyDictionaryOfCounters() { var sut = new PerformanceRecord(It.IsAny<TimeSpan>()); sut.QueueStats().Should().NotBeNull(); sut.QueueStats().Should().BeEmpty(); }