Ejemplo n.º 1
0
        public void GetStringReturnsStringfromByteArray()
        {
            byte[] testArray = { 72, 0, 101, 0, 108, 0, 108, 0, 111, 0 };

            string reply = ByteHelpers.GetString(testArray);

            Assert.AreEqual("Hello", reply);
        }
Ejemplo n.º 2
0
 public void GetStringThrowsArgumentNullExceptionIsInputArrayIsNull()
 {
     ByteHelpers.GetString(null);
 }