public void EncoderReceiveDataHasValidDeviceTypeTest() { // Given EncoderDataReceiver ecoderDataReceiver = new EncoderDataReceiver(roboteQ); SelectedDevice expectedDataReceiver = SelectedDevice.Encoder; // When SelectedDevice actualDataReceiver = ecoderDataReceiver.ReceiveData().SelectedDeviceType; // Then Assert.AreEqual(expectedDataReceiver, actualDataReceiver); }
public void EncoderReceiveDataIsNotNullTest() { // Given EncoderDataReceiver ecoderDataReceiver = new EncoderDataReceiver(roboteQ); string key = "speed"; // When double velocity = ecoderDataReceiver.ReceiveData().Dictionary[key]; // Then Assert.IsNotNull(velocity); }