Beispiel #1
0
        public void StepCounter_CountSwapOperation_WhenCalled_IncrementSwapOperationsCounter()
        {
            var stepCounter = new BaseStepCounter.StepCounter();

            stepCounter.CountSwapOperation();

            Assert.AreEqual(1, stepCounter.SwapOperationsCount);
        }
Beispiel #2
0
        public void StepCounter_CountSwapOperation_WhenNotCalled_SwapOperationsCountIsZero()
        {
            var stepCounter = new BaseStepCounter.StepCounter();

            Assert.AreEqual(0, stepCounter.SwapOperationsCount);
        }