Ejemplo n.º 1
0
        public void getSortListReturnsList()
        {
            var controller = new KennelsController();
            var result     = controller.GetSortList();

            Assert.IsInstanceOfType(result, typeof(List <string>));
        }
Ejemplo n.º 2
0
        public void ratingList1to5()
        {
            var controller = new KennelsController();
            var ratList    = new List <int>()
            {
                1, 2, 3, 4, 5
            };

            var result = controller.GetRatingList();

            CollectionAssert.AreEqual(ratList, result);
        }
Ejemplo n.º 3
0
        public void sortListTest()
        {
            var controller = new KennelsController();
            var sortList   = new List <string>()
            {
                "Name (A-Z)",
                "Name (Z-A)",
                "Price per Night (H-L)",
                "Price per Night (L-H)",
                "Price per Week (H-L)",
                "Price per Week (L-H)"
            };

            var result = controller.GetSortList();

            CollectionAssert.AreEqual(sortList, result);
        }