示例#1
0
        public void TestQueryModeSwitches1()
        {
            //Arrange
            oscillateA OS = new oscillateA();
            int        modeSwitches;

            //Act
            modeSwitches = OS.queryModeSwitches();
            //Assert
            Assert.AreEqual(0, modeSwitches);
        }
示例#2
0
        public void TestQueryModeSwitches2()
        {
            //Arrange
            oscillateA OS = new oscillateA();
            int        modeSwitches;

            //Act
            OS.switchMode();
            OS.switchMode();
            modeSwitches = OS.queryModeSwitches();
            //Assert
            Assert.AreEqual(2, modeSwitches);
        }