Exemple #1
0
        public void Index()
        {
            var controller = new CompetitionController();
            var result     = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }
        public void IndexTestView()
        {
            var controller = new CompetitionController();
            var result     = controller.Index("1", "1", "1", 10) as ViewResult;

            Assert.IsNotNull(result);
            Assert.AreEqual("", result.ViewName);
        }