public void TestFriendlyName() { HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser())); port.DeviceName = port.Devices[0]; Assert.NotNull(port.FriendlyName); Assert.NotEmpty(port.FriendlyName); }
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); }
public void TestPortEnumeration() { HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser())); Assert.NotNull(port.Devices); }
public void TestDeviceType() { HIDDataHandler port = new HIDDataHandler(new CurrentPacketParser(new RawPacketParser())); Assert.Equal(port.DeviceType, deviceType.HID); }