public void DetailsValidAthlete()
        {
            //Act
            var actual = (Athlete)controller.Details(1).Model;

            //Assert
            Assert.AreEqual(athletes.ToList()[0], actual);
        }
Beispiel #2
0
        public void DetailsWithoutId()
        {
            // act
            ViewResult result = (ViewResult)controller.Details(null);

            // assert
            Assert.AreEqual("Error", result.ViewName);
        }