Example #1
0
 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);
 }
Example #2
0
 public TestADXL345_SPI(SPI.Port port)
 {
     m_accel = new ADXL345_SPI(port, AccelerometerRange.k2G);
     m_port = (int)port;
     started = true;
 }
Example #3
0
 public void TestUpdateTableNull()
 {
     m_accel.Dispose();
     m_accel = new ADXL345_SPI((SPI.Port)m_port, AccelerometerRange.k2G);
     Assert.DoesNotThrow(() =>
     {
         m_accel.UpdateTable();
     });
 }