mirror of https://github.com/Squidex/squidex.git
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.
32 lines
815 B
32 lines
815 B
// ==========================================================================
|
|
// RandomHashTests.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using Xunit;
|
|
|
|
namespace Squidex.Infrastructure
|
|
{
|
|
public class RandomHashTests
|
|
{
|
|
[Fact]
|
|
public void Should_create_long_hash()
|
|
{
|
|
var hash = RandomHash.New();
|
|
|
|
Assert.Equal(44, hash.Length);
|
|
}
|
|
|
|
[Fact]
|
|
public void Should_create_new_hashs()
|
|
{
|
|
var hash1 = RandomHash.New();
|
|
var hash2 = RandomHash.New();
|
|
|
|
Assert.NotEqual(hash1, hash2);
|
|
}
|
|
}
|
|
}
|
|
|