public void GetStringReturnsStringfromByteArray() { byte[] testArray = { 72, 0, 101, 0, 108, 0, 108, 0, 111, 0 }; string reply = ByteHelpers.GetString(testArray); Assert.AreEqual("Hello", reply); }
public void GetStringThrowsArgumentNullExceptionIsInputArrayIsNull() { ByteHelpers.GetString(null); }