Exemple #1
0
        public void InvalidLengthForByteArrayThrowsExceptionTest()
        {
            int arraylength     = byte.MaxValue + 1;
            var uniqueByteArray = RandomByteGenerator.GetRandomBytesArray(arraylength);

            Assert.IsTrue(uniqueByteArray.Distinct().Count() == arraylength);
        }
Exemple #2
0
        public void UniqueByteArrayInitializationTest()
        {
            int arraylength     = byte.MaxValue;
            var uniqueByteArray = RandomByteGenerator.GetRandomBytesArray(arraylength);

            //check if all elements are unique
            Assert.IsTrue(uniqueByteArray.Distinct().Count() == arraylength);
        }