Exemplo n.º 1
0
        public void TestJobInactiveNotCount()
        {
            Statistics statistics = new Statistics();
            var        list       = Mocks.CreateFakeJobLines();
            var        result     = statistics.CalcStats(list);

            Assert.AreEqual(4, result[new DateTime(2020, 5, 4)]);
        }
Exemplo n.º 2
0
        public void TestJob2JobsSameDay()
        {
            Statistics statistics = new Statistics();
            var        list       = Mocks.CreateFakeJobLines();
            var        result     = statistics.CalcStats(list);

            Assert.AreEqual(8, result[new DateTime(2020, 5, 9)]);
        }
Exemplo n.º 3
0
        public void TestNumberOfDates()
        {
            Statistics statistics = new Statistics();
            var        list       = Mocks.CreateFakeJobLines();
            var        result     = statistics.CalcStats(list);

            Assert.AreEqual(9, result.Count);
        }