public void TestValueChanged() { using (Servo s = NewServo()) { s.SetAngle(80.0); Assert.That(s.GetAngle, Is.EqualTo(80.0).Within(0.1)); s.ValueChanged(null, null, Value.MakeDouble(.56), NetworkTables.NotifyFlags.NotifyLocal); Assert.That(s.Get, Is.EqualTo(.56).Within(0.01)); s.ValueChanged(null, null, Value.MakeDouble(-.58), NetworkTables.NotifyFlags.NotifyLocal); Assert.That(s.Get, Is.EqualTo(0.0).Within(0.01)); } }