Esempio n. 1
0
        public void TestStudentiIndexTitle()
        {
            //Arrange
            StudentiController controller =
                new StudentiController();

            //Act
            ViewResult result = controller.Index() as ViewResult;

            //Assert
            Assert.AreEqual("Početna stranica o studentima", result.ViewBag.Title);
        }
Esempio n. 2
0
 public StudentTests()
 {
     _mockRepo   = new Mock <IStudentRepository>();
     _controller = new StudentiController(_mockRepo.Object);
 }