public void TestPenReset() { Reset.CheckReset(true); String a = "20 30"; String[] commandList = a.Split(" "); if (Reset._reset) // if reset bool is set to true { MoveToClass._xPos = 0; MoveToClass._yPos = 0; // set reset bool back to false } _rectangleDraw.DrawRectangle(int.Parse(commandList[0]), int.Parse(commandList[1])); Assert.IsTrue(MoveToClass._xPos == 0 && MoveToClass._yPos == 0); Assert.IsFalse(MoveToClass._xPos == 20 && MoveToClass._xPos == 30); }