public void RoundTrip(string input, byte[] expected)
        {
            byte[] actual = ByteUtility.ToBytes(input);
            CollectionAssert.AreEqual(expected, actual);

            string output = ByteUtility.ToString(actual);

            Assert.AreEqual(input.ToUpperInvariant(), output);
        }
 public void ToBytesArguments()
 {
     Assert.Throws <ArgumentNullException>(() => ByteUtility.ToBytes(null !));
     Assert.Throws <ArgumentException>(() => ByteUtility.ToBytes("1"));
     Assert.Throws <ArgumentOutOfRangeException>(() => ByteUtility.ToBytes("XY"));
 }