public void TestDisposeAndInitialize() { Assert.That(GetData().Active); m_accel.Dispose(); Assert.That(GetData().Active, Is.False); m_accel = new ADXL345_SPI((SPI.Port)m_port, AccelerometerRange.k2G); Assert.That(GetData().Active); }
public TestADXL345_SPI(SPI.Port port) { m_accel = new ADXL345_SPI(port, AccelerometerRange.k2G); m_port = (int)port; started = true; }
public void TestUpdateTableNull() { m_accel.Dispose(); m_accel = new ADXL345_SPI((SPI.Port)m_port, AccelerometerRange.k2G); Assert.DoesNotThrow(() => { m_accel.UpdateTable(); }); }