Beispiel #1
0
        public void GetStatistics_ShowPercentageUptoTwoDecimalsBasedOnTotalCount(int count, int total, double expected)
        {
            _counter.Count = count;
            var statistics = new CounterManager().GetStatistics(_counter, total);

            Equal(expected, statistics.Percent);
        }
Beispiel #2
0
        public void GetStatistics_IncludesCounterCount()
        {
            var statistics = new CounterManager().GetStatistics(_counter, 5);

            Equal(5, statistics.Count);
        }
Beispiel #3
0
        public void GetStatistics_IncludesCounterName()
        {
            var statistics = new CounterManager().GetStatistics(_counter, 5);

            Equal(CounterName, statistics.Name);
        }