コード例 #1
0
        public void CheckModel()
        {
            BookReadingEventController controllerUnderTest = new BookReadingEventController();
            var result = controllerUnderTest.GetBookReadingEventDetails(4) as ViewResult;

            Assert.AreEqual(null, result.Model);
        }
コード例 #2
0
        public void ReturnsGetBookReadingEventDetailsView()
        {
            BookReadingEventController controllerUnderTest = new BookReadingEventController();
            var result = controllerUnderTest.GetBookReadingEventDetails(4) as ViewResult;

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