Initial commit

This commit is contained in:
2021-08-26 20:59:17 +02:00
commit 3afa4c82ef
524 changed files with 52428 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenDBDiff.Schema.SQLServer.Generates.Generates.Util;
namespace OpenDBDiff.Schema.SQLServer.Generates.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);
}
}
}