Exemplo n.º 1
0
            public void PhotosDetails()
            {
                PhotosController controller = new PhotosController();
                var result = controller.Details(1);
                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(result, typeof(ViewResult));

            }
Exemplo n.º 2
0
            public void PhotosDetailsNotFound()
            {
                PhotosController controller = new PhotosController();
                var result = (HttpStatusCodeResult)controller.Details(-1);
                Assert.AreEqual(404, result.StatusCode);
                Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));

            }