You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
501 B
20 lines
501 B
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OpenDBDiff.SqlServer.Schema.Generates.Util;
|
|
|
|
namespace OpenDBDiff.Tests.Generates.Utils.Tests
|
|
{
|
|
[TestClass]
|
|
public class ByteToHexEncoderTests
|
|
{
|
|
[TestMethod]
|
|
public void EncodesBytesIntoHex()
|
|
{
|
|
byte[] bytes = { 0, 1, 2, 4, 8, 16, 32, 64, 128, 255 };
|
|
|
|
var hex = ByteToHexEncoder.ByteArrayToHex(bytes);
|
|
|
|
Assert.AreEqual("0x000102040810204080FF", hex);
|
|
}
|
|
}
|
|
}
|