public void GenerateInt64_ShouldBeSuccessful(int length) { var randNumber = Uniquify.GetInt64(length); randNumber.ToString().Should().HaveLength(length); randNumber.Should().BeOfType(typeof(long)).And.NotBe(0); }
public void GenerateInt64_WithOutOfRangeLength_ShouldBeFailed(int length) { Action waitingForException = () => Uniquify.GetInt64(length); waitingForException.Should().Throw <ArgumentOutOfRangeException>(); }