Exemplo n.º 1
0
        public async Task CreateTodoList_ReturnsBadRequest()
        {
            _controller.ModelState.AddModelError("", "");

            var result = await _controller.CreateToDoList(new ToDoList());

            var contentResult = result as InvalidModelStateResult;

            Assert.IsInstanceOfType(contentResult, typeof(InvalidModelStateResult));
        }