コード例 #1
0
        private void TheArrayHasTheExpectedSize(int arraySize)
        {
            var arrayFiller = new ArrayFiller(arraySize);
            var array = arrayFiller.GetRandomlyFilledArray();

            Assert.AreEqual(arraySize, array.Length);
        }
コード例 #2
0
        private void TheArrayDoesNotHaveDuplicatess(int arraySize)
        {
            var arrayFiller = new ArrayFiller(arraySize);
            var array = arrayFiller.GetRandomlyFilledArray();

            Assert.AreEqual(array.Distinct().Count(), array.Length);
        }