mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-05 06:53:07 +00:00
20 lines
431 B
C#
20 lines
431 B
C#
using NUnit.Framework;
|
|
using Utils;
|
|
|
|
namespace FrameworkTests.Utils
|
|
{
|
|
[TestFixture]
|
|
public class RandomUtilsTests
|
|
{
|
|
[Test]
|
|
[Combinatorial]
|
|
public void TestRandomStringLength(
|
|
[Values(1, 5, 10, 1023, 1024, 1025, 2222)] int length)
|
|
{
|
|
var str = RandomUtils.GenerateRandomString(length);
|
|
|
|
Assert.That(str.Length, Is.EqualTo(length));
|
|
}
|
|
}
|
|
}
|