Ejemplo n.º 1
0
        public void GenerateInt64_ShouldBeSuccessful(int length)
        {
            var randNumber = Uniquify.GetInt64(length);

            randNumber.ToString().Should().HaveLength(length);
            randNumber.Should().BeOfType(typeof(long)).And.NotBe(0);
        }
Ejemplo n.º 2
0
        public void GenerateInt64_WithOutOfRangeLength_ShouldBeFailed(int length)
        {
            Action waitingForException = () => Uniquify.GetInt64(length);

            waitingForException.Should().Throw <ArgumentOutOfRangeException>();
        }