Esempio n. 1
0
        public void ActionCreateIsPartialViewResult()
        {
            var result = _albumsController.Create() as PartialViewResult;

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(PartialViewResult));
        }
Esempio n. 2
0
        public void AlbumControllerCreateNotNull()
        {
            var albumController = new AlbumsController(null, null);

            var result = albumController.Create();

            Assert.IsNotNull(result);
        }
        public void CreateViewLoads()
        {
            // act
            var result = (ViewResult)controller.Create();

            // assert
            Assert.AreEqual("Create", result.ViewName);
        }
Esempio n. 4
0
        public void CreateReturnsAView()
        {
            //Act
            ViewResult result = (ViewResult)controller.Create();

            //Assert
            Assert.AreEqual("Create", result.ViewName);
        }
Esempio n. 5
0
        public void AlbumsCreateTest()
        {
            // Arrange
            AlbumsController controller2 = new AlbumsController();

            // Act
            var result2 = controller2.Create();

            // Assert
            Assert.IsNotNull(result2);
        }