Beispiel #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)));
        }
Beispiel #2
0
 public void ATUtilNullReturnsUnknown()
 {
     Assert.That(ATUtil.Parse(null), Is.EqualTo(AT.Unknown));
 }
Beispiel #3
0
 public void ATUtilValid()
 {
     Assert.That(ATUtil.Parse("DH"), Is.EqualTo(AT.DestinationHigh));
 }
Beispiel #4
0
 public void ATUtilInvalidReturnsUnknown()
 {
     Assert.That(ATUtil.Parse("11"), Is.EqualTo(AT.Unknown));
 }