Esempio n. 1
0
        public void TestSmallest_WihiteSizeOne()
        {
            // Assable
            TTDPrograms tDDPrograms = new TTDPrograms();

            int[] arr          = { 4 };
            int   expextedValu = 4;

            // Act
            int actualValue = tDDPrograms.Smallest(arr);

            // Assert
            Assert.AreEqual(expextedValu, actualValue);
        }
Esempio n. 2
0
        public void TestSmallest()
        {
            // Assable
            TTDPrograms tDDPrograms = new TTDPrograms();

            int[] arr          = { 4, 5, 1, 7 };
            int   expextedValu = 1;

            // Act
            int actualValue = tDDPrograms.Smallest(arr);

            // Assert
            Assert.AreEqual(expextedValu, actualValue);
        }