Esempio n. 1
0
 public void TestStopLiveWindowModeTable()
 {
     using (Solenoid s = NewSolenoid())
     {
         ITable table = new MockNetworkTable();
         s.InitTable(table);
         s.Set(true);
         Assert.That(s.Get, Is.True);
         s.StopLiveWindowMode();
         Assert.That(s.Get, Is.False);
     }
 }
Esempio n. 2
0
 public void TestInitTable()
 {
     using (DoubleSolenoid s = NewDoubleSolenoid())
     {
         ITable table = new MockNetworkTable();
         Assert.DoesNotThrow(() =>
         {
             s.InitTable(table);
         });
         Assert.That(s.Table, Is.EqualTo(table));
     }
 }
Esempio n. 3
0
        public void TestInitTable()
        {
            using (DoubleSolenoid s = NewDoubleSolenoid())
            {
                ITable table = new MockNetworkTable();
                Assert.DoesNotThrow(() =>
                {
                    s.InitTable(table);
                });
                Assert.That(s.Table, Is.EqualTo(table));
            }

        }
Esempio n. 4
0
        public void TestInitTable()
        {
            using (Counter s = new Counter())
            {
                ITable table = new MockNetworkTable();
                Assert.DoesNotThrow(() =>
                {
                    s.InitTable(table);
                });
                Assert.That(s.Table, Is.EqualTo(table));
            }

        }
Esempio n. 5
0
        public void TestInitTableBase()
        {
            using (GyroBase s = GetAnalogGyro(0))
            {
                ITable table = new MockNetworkTable();
                Assert.DoesNotThrow(() =>
                {
                    s.InitTable(table);
                });
                Assert.That(s.Table, Is.EqualTo(table));
            }

        }
Esempio n. 6
0
        public void TestStartLiveWindowModeTable()
        {
            Assert.DoesNotThrow(() =>
            {
                ITable table = new MockNetworkTable();
                m_accel.InitTable(table);
            });


        }
Esempio n. 7
0
 public void TestInitTable()
 {
     ITable table = new MockNetworkTable();
     Assert.DoesNotThrow(() =>
     {
         m_accel.InitTable(table);
     });
     Assert.That(m_accel.Table, Is.EqualTo(table));
 }
Esempio n. 8
0
        public void TestInitTable()
        {
            using (DigitalOutput s = new DigitalOutput(0))
            {
                ITable table = new MockNetworkTable();
                Assert.DoesNotThrow(() =>
                {
                    s.InitTable(table);
                });
                Assert.That(s.Table, Is.EqualTo(table));
            }

        }
Esempio n. 9
0
        public void TestInitTable()
        {
            using (AnalogInput s = GetAnalogInput(4))
            {
                ITable table = new MockNetworkTable();
                Assert.DoesNotThrow(() =>
                {
                    s.InitTable(table);
                });
                Assert.That(s.Table, Is.EqualTo(table));
            }

        }
 public void TestInitTable()
 {
     using (AnalogAccelerometer m_accel = GetAnalogAccelerometer(0))
     {
         ITable table = new MockNetworkTable();
         Assert.DoesNotThrow(() =>
         {
             m_accel.InitTable(table);
         });
         Assert.That(m_accel.Table, Is.EqualTo(table));
     }
 }
Esempio n. 11
0
 public void TestStopLiveWindowModeTable()
 {
     using (Solenoid s = NewSolenoid())
     {
         ITable table = new MockNetworkTable();
         s.InitTable(table);
         s.Set(true);
         Assert.That(s.Get, Is.True);
         s.StopLiveWindowMode();
         Assert.That(s.Get, Is.False);
     }
 }
        public void TestStartLiveWindowModeTable()
        {
            using (AnalogAccelerometer m_accel = GetAnalogAccelerometer(0))
            {
                Assert.DoesNotThrow(() =>
                {
                    ITable table = new MockNetworkTable();
                    m_accel.InitTable(table);
                });
            }


        }
Esempio n. 13
0
 public void TestInitTable()
 {
     Compressor compressor = new Compressor();
     ITable table = new MockNetworkTable();
     Assert.DoesNotThrow(() =>
     {
         compressor.InitTable(table);
     });
     Assert.That(compressor.Table, Is.EqualTo(table));
 }
Esempio n. 14
0
        public void TestStartLiveWindowModeTable()
        {
            Compressor compressor = new Compressor();
            Assert.DoesNotThrow(() =>
            {
                ITable table = new MockNetworkTable();
                compressor.InitTable(table);
            });


        }
 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));
 }
        public void TestStartLiveWindowModeTable()
        {
            BuiltInAccelerometer m_accel = new BuiltInAccelerometer(AccelerometerRange.k4G);
            Assert.DoesNotThrow(() =>
            {
                ITable table = new MockNetworkTable();
                m_accel.InitTable(table);
            });


        }