private void E_Click(object sender, EventArgs e) { //clears everything textBox1.Clear(); leftTest.Clear(); RightTest.Clear(); operatorTest.Clear(); }
private void CE_Click(object sender, EventArgs e) { //should only clear the number you are currently entering //needs fixing textBox1.Clear(); leftTest.Clear(); RightTest.Clear(); operatorTest.Clear(); }
public void TestRight() { Rectangle collisionRectangle; RightTest obj = new RightTest(50, 16, 10, 10); RightTest mario = new RightTest(20, 80, 80, 80); for (int y = 0; y < 100; y++) { mario.Area = new Rectangle(20 + y, 80, 80, 80); collisionRectangle = Rectangle.Intersect(mario.Area, obj.Area); if (collisionRectangle.Right == obj.Area.Right && collisionRectangle.Width > collisionRectangle.Height) { Assert.Fail(); } } }