Example #1
0
        public void TestQueryModeSwitches3()
        {
            //Arrange
            oscillateA OS = new oscillateA();
            int        modeSwitches;

            //Act
            OS.switchMode();
            OS.switchMode();
            OS.reset();
            modeSwitches = OS.queryModeSwitches();
            //Assert
            Assert.AreEqual(0, modeSwitches);
        }
Example #2
0
        public void TestNumGen3()
        {
            //Arrange
            oscillateA OS = new oscillateA();
            int        numGenCount;

            //Act
            OS.next();
            OS.next();
            OS.reset();
            numGenCount = OS.numGen();
            //Assert
            Assert.AreEqual(0, numGenCount);
        }
Example #3
0
        public void TestNext4()
        {
            //Arrange
            int        commonDiff = 4;
            oscillateA OS         = new oscillateA(commonDiff);
            int        nextcall;

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