Ejemplo n.º 1
0
        public void TestFriendlyName()
        {
            HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null);

            port.DeviceName = port.Devices[0];
            Assert.NotNull(port.FriendlyName);
            Assert.NotEmpty(port.FriendlyName);
        }
Ejemplo n.º 2
0
        public void TestPortOpenClose()
        {
            HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null);

            Assert.Equal(port.PortState, PortState.Error);

            port.DeviceName = port.Devices[0];
            Assert.NotEmpty(port.DeviceName);
        }
Ejemplo n.º 3
0
        public void TestDeviceType()
        {
            HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null);

            Assert.Equal(port.DeviceType, DeviceType.HID);
        }
Ejemplo n.º 4
0
        public void TestPortEnumeration()
        {
            HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null);

            Assert.NotNull(port.Devices);
        }