コード例 #1
0
        public void EncoderReceiveDataIsNotNullTest()
        {
            //  Given
            EncoderDataReceiver ecoderDataReceiver = new EncoderDataReceiver(roboteQ);
            string key = "speed";

            //  When
            double velocity = ecoderDataReceiver.ReceiveData().Dictionary[key];

            //  Then
            Assert.IsNotNull(velocity);
        }
コード例 #2
0
        public void EncoderReceiveDataHasValidDeviceTypeTest()
        {
            //  Given
            EncoderDataReceiver ecoderDataReceiver = new EncoderDataReceiver(roboteQ);
            SelectedDevice expectedDataReceiver = SelectedDevice.Encoder;

            //  When
            SelectedDevice actualDataReceiver = ecoderDataReceiver.ReceiveData().SelectedDeviceType;

            //  Then
            Assert.AreEqual(expectedDataReceiver, actualDataReceiver);
        }