public void ReceiveDataFromFirstSharpTest()
        {
            //  Given
            SharpSensorsDataReceiver sharpSensorsDataReceiver = new SharpSensorsDataReceiver(arduino);
            string key = "distance1";

            //  When
            double distanceFromFirstSharp = sharpSensorsDataReceiver.ReceiveData().Dictionary[key];

            //  Then
            Assert.IsNotNull(distanceFromFirstSharp);
        }
        public void ReceiveDataFromSecondSharpIsBetween200And1500Or0Test()
        {
            //  Given
            SharpSensorsDataReceiver sharpSensorsDataReceiver = new SharpSensorsDataReceiver(arduino);
            string key = "distance2";
            int minValue = 200;
            int maxValue = 1500;
            int undefinedValue = 0;

            //  When
            double distanceFromSecondSharp = sharpSensorsDataReceiver.ReceiveData().Dictionary[key];

            //  Then
            Assert.IsTrue((distanceFromSecondSharp >= minValue && distanceFromSecondSharp <= maxValue) || distanceFromSecondSharp == undefinedValue);
        }
        public void SharpSensorsReceiveDataHasValidDeviceTypeTest()
        {
            //  Given
            SharpSensorsDataReceiver sharpSensorsDataReceiver = new SharpSensorsDataReceiver(arduino);
            SelectedDevice expectedDataReceiver = SelectedDevice.Sharp;

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

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