public void OnCommandTests() { Command command = null; //9/16/2015 5:44:22 PM|Debug|InsteonSerial: //Received Data:>P2z4 Ë< (02 50 32 7A 34 00 00 01 CB 11 01) _i.OnCommand("32.7a.34", action: (c) => { command = c; }); _i._DataReceived(Conversions.HexToAscii("0250327A34000001CB1101")); Thread.Sleep(2000); Assert.IsNotNull(command); Assert.AreEqual(command.Primary, CommandType.On); Assert.AreEqual(command.Source, "32.7a.34"); }