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

            //Act
            OS.switchMode();
            OS.switchMode();
            modeSwitches = OS.queryModeSwitches();
            //Assert
            Assert.AreEqual(2, modeSwitches);
        }
Beispiel #2
0
        public void TestSwitchModes2()
        {
            //Arrange
            oscillateA OS = new oscillateA();
            string     mode;

            //Act
            OS.switchMode();
            OS.switchMode();
            mode = OS.getMode();
            //Assert
            Assert.AreEqual("stuck", mode);
        }