public void Encoding_Using_BestFit()
        {
            var bytes = new GsmEncoding(true, true).GetBytes("ÁÉÍÓÚ ÀÈÌÒÙ áéíóú €");
            var valid = new byte[] {
                0x7f, 0x1f, 0x07, 0x08, 0x06, 0x20,
                0x7f, 0x1f, 0x07, 0x08, 0x06, 0x20,
                0x7f, 0x05, 0x07, 0x08, 0x06, 0x20,
                0x1b, 0x65
            };

            CollectionAssert.AreEqual(valid, bytes);
        }
 public void SetUp()
 {
     _encoding = new GsmEncoding();
 }
        public void Encoding_Invalid_Char_Using_BestFit_Replaces_Character()
        {
            var bytes = new GsmEncoding(true, false).GetBytes(new char[] { 'º' });

            CollectionAssert.AreEqual(new byte[] { 0x3f }, bytes);
        }