Exemplo n.º 1
0
        public void IncrementAlgoTest2()
        {
            IncrementAlgo algo = new IncrementAlgo(42, 3);

            Assert.Equal(42, algo.GetNext());
            Assert.Equal(45, algo.GetNext());
            Assert.Equal(48, algo.GetNext());
            Assert.Equal(51, algo.GetNext());
            Assert.Equal(54, algo.GetNext());
        }
Exemplo n.º 2
0
        public void IncrementAlgoTest()
        {
            IncrementAlgo algo = new IncrementAlgo(1, 1);

            Assert.Equal(1, algo.GetNext());
            Assert.Equal(2, algo.GetNext());
            Assert.Equal(3, algo.GetNext());
            Assert.Equal(4, algo.GetNext());
            Assert.Equal(5, algo.GetNext());
        }