Exemplo n.º 1
0
        public void That_GetCount_Returns1AfterShotTakenAndCounterWas0()
        {
            // given a shot counter, starting at 0
            IShotCounter serviceToTest = new ShotCounter();

            // when one shot taken
            serviceToTest.AddShot(currentShotCount: 0);
            int actual = serviceToTest.GetCount();

            // assert - result is 1
            Assert.AreEqual(1, actual);
        }
Exemplo n.º 2
0
        public void That_GetCount_Returns6AfterShotTakenAndCounterWas5()
        {
            // given a shot counter starting at 5
            int          startCount    = 5;
            IShotCounter serviceToTest = new ShotCounter();

            // when one shot taken
            serviceToTest.AddShot(startCount);
            int actual = serviceToTest.GetCount();

            // assert - result is 6
            Assert.AreEqual(6, actual);
        }