public AT ReadATCommand() { var cmd = new char[2]; cmd[0] = (char)packetStream.ReadByte(); cmd[1] = (char)packetStream.ReadByte(); return(ATUtil.Parse(new String(cmd))); }
public void ATUtilNullReturnsUnknown() { Assert.That(ATUtil.Parse(null), Is.EqualTo(AT.Unknown)); }
public void ATUtilValid() { Assert.That(ATUtil.Parse("DH"), Is.EqualTo(AT.DestinationHigh)); }
public void ATUtilInvalidReturnsUnknown() { Assert.That(ATUtil.Parse("11"), Is.EqualTo(AT.Unknown)); }