public void TestVictorSet() { using (Victor t = new Victor(2)) { t.Set(1); Assert.AreEqual(t.Get(), 1); } }
public void TestPWMHelpers() { using (Victor t = new Victor(2)) { t.Set(1); Assert.AreEqual(PWMHelpers.ReverseByType(nameof(Victor), HalData()["pwm"][2]["raw_value"]), 1); Assert.AreEqual(PWMHelpers.ReverseByType(2), 1); Assert.AreEqual(HalData()["pwm"][2]["value"], 1); } }