Esempio n. 1
0
        public void IncreaseCounters_BetweenFiveAndSeven_SecondIncreased()
        {
            var service = new ExampleServiceImplementation();

            service.IncreaseCounters(6);

            Assert.Equal(0, service.First);
            Assert.Equal(1, service.Second);
            Assert.Equal(0, service.Third);
        }
Esempio n. 2
0
        public void IncreaseCounters_LargerThanSeven_ThirdIncreased()
        {
            var service = new ExampleServiceImplementation();

            service.IncreaseCounters(11);

            Assert.Equal(0, service.First);
            Assert.Equal(0, service.Second);
            Assert.Equal(1, service.Third);
        }
Esempio n. 3
0
        public void IncreaseCounters_SmallerThanThree_NoCountersIncreased()
        {
            var service = new ExampleServiceImplementation();

            service.IncreaseCounters(1);

            Assert.Equal(0, service.First);
            Assert.Equal(0, service.Second);
            Assert.Equal(0, service.Third);
        }