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); }
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); }
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); }