コード例 #1
0
 public void TestInitTable()
 {
     BuiltInAccelerometer m_accel = new BuiltInAccelerometer(AccelerometerRange.k4G);
     ITable table = new MockNetworkTable();
     Assert.DoesNotThrow(() =>
     {
         m_accel.InitTable(table);
     });
     Assert.That(m_accel.Table, Is.EqualTo(table));
 }
コード例 #2
0
        public void TestStartLiveWindowModeTable()
        {
            BuiltInAccelerometer m_accel = new BuiltInAccelerometer(AccelerometerRange.k4G);
            Assert.DoesNotThrow(() =>
            {
                ITable table = new MockNetworkTable();
                m_accel.InitTable(table);
            });


        }