示例#1
0
        public void HexToByte()
        {
            // Arrange
            const string value = "01-02-04-08-10-20";

            byte[] expectedValue = { 1, 2, 4, 8, 16, 32 };

            // Act
            byte[] actualValue = HexHelper.HexToByte(value);

            // Assert
            CollectionAssert.AreEqual(expectedValue, actualValue);
        }