Пример #1
0
            public void BeforeEach()
            {
                _enumerator = new HidFastReadEnumerator();
                var firstDevice = _enumerator.Enumerate().FirstOrDefault();

                _devicePath = firstDevice != null ? firstDevice.DevicePath : "";
            }
            public void BeforeEach()
            {
                enumerator = new HidFastReadEnumerator();
                var firstDevice = enumerator.Enumerate().FirstOrDefault();

                if (firstDevice != null)
                {
                    devicePath = firstDevice.DevicePath;
                }
                else
                {
                    devicePath = "";
                }
            }