public void ArmEinTest() { // arrange Kran kran = new Kran(); Panel haken = new Panel(); Panel arm = new Panel(); haken.Size = new System.Drawing.Size(0, 0); haken.Location = new System.Drawing.Point(20, 20); arm.Size = new System.Drawing.Size(50, 50); arm.Location = new System.Drawing.Point(10, 10); // act kran.ArmEin(arm, haken); // assert Assert.AreEqual(30, haken.Location.X); Assert.AreEqual(20, haken.Location.Y); Assert.AreEqual(40, arm.Size.Width); Assert.AreEqual(50, arm.Size.Height); Assert.AreEqual(20, arm.Location.X); Assert.AreEqual(10, arm.Location.Y); }
private void Arm_Ein(object sender, EventArgs e) { kran.ArmEin(arm, haken); }