public void TestServeSetOutsideAngleOver() { using (Servo s = NewServo()) { s.SetAngle(185.9); Assert.AreEqual(s.GetAngle(), 180.0, .1); } }
public void TestServeSetOutsideAngleUnder() { using (Servo s = NewServo()) { s.SetAngle(-10.5); Assert.AreEqual(s.GetAngle(), 0.0, .1); } }
public void TestServoSetAngle() { using (Servo s = NewServo()) { s.SetAngle(76.5); Assert.AreEqual(s.GetAngle(), 76.5); } }