using System.Text.RegularExpressions; using IOL.Fagprove.Utilities; using Xunit; namespace PIT.ReservationService.Tests { public class CryptographyTests { [Fact] public void ReturnsDefaultLength() { var randomString = Cryptography.RandomString(); Assert.True(randomString.Length == 12); } [Fact] public void ReturnsSpecifiedLength() { var length = 365; var randomString = Cryptography.RandomString(length); Assert.True(randomString.Length == length); } } }