示例#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);
        }
示例#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);
        }
示例#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);
        }