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); }
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); }
public void TestDeviceType() { HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null); Assert.Equal(port.DeviceType, DeviceType.HID); }
public void TestPortEnumeration() { HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser()), null); Assert.NotNull(port.Devices); }