public void InvalidLengthForByteArrayThrowsExceptionTest() { int arraylength = byte.MaxValue + 1; var uniqueByteArray = RandomByteGenerator.GetRandomBytesArray(arraylength); Assert.IsTrue(uniqueByteArray.Distinct().Count() == arraylength); }
public void UniqueByteArrayInitializationTest() { int arraylength = byte.MaxValue; var uniqueByteArray = RandomByteGenerator.GetRandomBytesArray(arraylength); //check if all elements are unique Assert.IsTrue(uniqueByteArray.Distinct().Count() == arraylength); }