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)); }