コード例 #1
0
        public void Details_NoId()
        {
            var result = controller.Details();

            Assert.IsInstanceOfType(result, typeof(HttpNotFoundResult));
        }
コード例 #2
0
        public void Details_NoId()
        {
            var result = _controller.Details();

            result.Should().BeOfType <NotFoundObjectResult>();
        }