Initial commit: Client Doc docs Server Tools
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Xunit;
|
||||
using XWorld.PublishTool;
|
||||
|
||||
namespace XWorld.PublishTool.Tests
|
||||
{
|
||||
public class Md5UtilTests
|
||||
{
|
||||
[Fact]
|
||||
public void Hex_OfKnownBytes_IsStableLowercase32()
|
||||
{
|
||||
// MD5("abc") = 900150983cd24fb0d6963f7d28e17f72
|
||||
var hex = Md5Util.OfBytes(System.Text.Encoding.ASCII.GetBytes("abc"));
|
||||
Assert.Equal("900150983cd24fb0d6963f7d28e17f72", hex);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Empty_IsKnownMd5()
|
||||
{
|
||||
Assert.Equal("d41d8cd98f00b204e9800998ecf8427e", Md5Util.OfBytes(new byte[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user