Beispiel #1
0
        //bug found in this case.
        public void TestCreateSet_Testforsize()
        {
            //Arrange
            int expResult = 2;
            //Act
            List <int> result = ArraySetUtilities.CreateSet(1, 2, 4, false);

            //Assert
            Assert.AreEqual(expResult, result[0], "it obtains some random values");
        }
Beispiel #2
0
        public void TestCreateSet_CorrectSizeCreated()
        {
            //Arrange
            int  size           = 20;
            int  minimum        = 0;
            int  maximum        = 100;
            bool uniqueElements = false;
            int  expResult      = size;

            //Act
            int result = ArraySetUtilities.CreateSet(size, minimum, maximum, uniqueElements).Count;

            //Assert
            Assert.AreEqual(expResult, result, "incorrect item count");
        }