public void TestQueryModeSwitches3() { //Arrange arithS AS = new arithS(); int modeSwitches; //Act AS.switchMode(); AS.switchMode(); AS.reset(); modeSwitches = AS.queryModeSwitches(); //Assert Assert.AreEqual(0, modeSwitches); }
public void TestNumGen3() { //Arrange arithS AS = new arithS(); int numGenCount; //Act AS.next(); AS.next(); AS.reset(); numGenCount = AS.numGen(); //Assert Assert.AreEqual(0, numGenCount); }
public void TestNext4() { //Arrange int commonDiff = 4; arithS AS = new arithS(commonDiff); int nextcall; //Act AS.next(); AS.next(); AS.reset(); nextcall = AS.next(); //Assert Assert.AreEqual(4, nextcall); }