Exemplo n.º 1
0
        public void WhenPipeInputGivenSetDailyAndHourlyCounter()
        {
            CountSetters.DailyCount.Clear();
            CountSetters.HourlyCount.Clear();
            var date1  = new DateTime(2020, 10, 12, 10, 11, 14);
            var pipeIp = date1.ToString(CultureInfo.InvariantCulture);

            PipeReader.AddEventToDs(pipeIp);
            var dayCount  = CountSetters.DailyCount.Count;
            var hourCount = CountSetters.HourlyCount.Count;

            Assert.True((dayCount == 1) && hourCount == 1);
            CountSetters.DailyCount.Clear();
            CountSetters.HourlyCount.Clear();
        }