Example #1
0
        public void ReturnSomethingDifferentMostOfTheTimeItIsCalled()
        {
            //Just comparing two would break occasionally
            var randomBytes = new List <byte>();

            for (var i = 0; i < 20; i++)
            {
                randomBytes.Add(RandomValue.Byte());
            }

            var groupedbytes = randomBytes.GroupBy(x => x);

            groupedbytes.Count().ShouldBeGreaterThan(10);
        }
Example #2
0
        public void NotExceedTheMaximumValuePassedIn()
        {
            var randomByte = RandomValue.Byte(5);

            randomByte.ShouldBeInRange((byte)0, (byte)5);
        }