Example #1
0
        public AT ReadATCommand()
        {
            var cmd = new char[2];

            cmd[0] = (char)packetStream.ReadByte();
            cmd[1] = (char)packetStream.ReadByte();

            return(ATUtil.Parse(new String(cmd)));
        }
Example #2
0
 public void ATUtilNullReturnsUnknown()
 {
     Assert.That(ATUtil.Parse(null), Is.EqualTo(AT.Unknown));
 }
Example #3
0
 public void ATUtilValid()
 {
     Assert.That(ATUtil.Parse("DH"), Is.EqualTo(AT.DestinationHigh));
 }
Example #4
0
 public void ATUtilInvalidReturnsUnknown()
 {
     Assert.That(ATUtil.Parse("11"), Is.EqualTo(AT.Unknown));
 }