public void GetStatistics_ShowPercentageUptoTwoDecimalsBasedOnTotalCount(int count, int total, double expected) { _counter.Count = count; var statistics = new CounterManager().GetStatistics(_counter, total); Equal(expected, statistics.Percent); }
public void GetStatistics_IncludesCounterCount() { var statistics = new CounterManager().GetStatistics(_counter, 5); Equal(5, statistics.Count); }
public void GetStatistics_IncludesCounterName() { var statistics = new CounterManager().GetStatistics(_counter, 5); Equal(CounterName, statistics.Name); }