Ejemplo n.º 1
0
        public void TestQueryModeSwitches3()
        {
            //Arrange
            arithS AS = new arithS();
            int    modeSwitches;

            //Act
            AS.switchMode();
            AS.switchMode();
            AS.reset();
            modeSwitches = AS.queryModeSwitches();
            //Assert
            Assert.AreEqual(0, modeSwitches);
        }
Ejemplo n.º 2
0
        public void TestNumGen3()
        {
            //Arrange
            arithS AS = new arithS();
            int    numGenCount;

            //Act
            AS.next();
            AS.next();
            AS.reset();
            numGenCount = AS.numGen();
            //Assert
            Assert.AreEqual(0, numGenCount);
        }
Ejemplo n.º 3
0
        public void TestNext4()
        {
            //Arrange
            int    commonDiff = 4;
            arithS AS         = new arithS(commonDiff);
            int    nextcall;

            //Act
            AS.next();
            AS.next();
            AS.reset();
            nextcall = AS.next();
            //Assert
            Assert.AreEqual(4, nextcall);
        }