public void Encode_Simple_String() { var bytes = _encoding.GetBytes(_simpleString); CollectionAssert.AreEqual(_simpleBytes, bytes); }
public void GetBytes_NormalString_Success() { const string input = "abcd"; var expectedResult = new byte[] { 97, 98, 99, 100 }; var result = m_GsmEncoding.GetBytes(input); Assert.AreEqual(expectedResult, result); }