Ejemplo n.º 1
0
        public void Arrange_Alphabetically_NotStringException()
        {
            //arrange
            AList <int> arrangeList = new AList <int>()
            {
                25, 13, 17, 21
            };

            //act
            arrangeList.ArrangeAlphabetically();//NumericallyHighToLow
            //assert
        }
Ejemplo n.º 2
0
        public void Arrange_Alphabetically_VerifyIndex2()
        {
            //arrange
            AList <string> arrangeList = new AList <string>()
            {
                "dog", "hamster", "cat", "fish"
            };

            //act
            arrangeList = arrangeList.ArrangeAlphabetically();//AlphabeticallyA
            //assert
            Assert.AreEqual(arrangeList[2], "fish");
        }