Esempio n. 1
0
 public void TestFriendlyName()
 {
     HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()));
     port.DeviceName = port.Devices[0];
     Assert.NotNull(port.FriendlyName);
     Assert.NotEmpty(port.FriendlyName);
 }
Esempio n. 2
0
        public void TestPortOpenClose()
        {
            HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()));

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

            port.DeviceName = port.Devices[0];
            Assert.NotEmpty(port.DeviceName);
        }
Esempio n. 3
0
 public void TestPortEnumeration()
 {
     HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()));
     Assert.NotNull(port.Devices);
 }
Esempio n. 4
0
 public void TestDeviceType()
 {
     HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()));
     Assert.Equal(port.DeviceType, deviceType.HID);
 }