You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var addResponse = await client.PostAsJsonAsync("todo", new {
title = "New Todo",
description = "Description of the todo"
});
Assert.Equal(System.Net.HttpStatusCode.OK, addResponse.StatusCode);
Here you do not test if saved item actually has title "New Todo" in db (what it if it was not assigned at all?)
My question is why?
The text was updated successfully, but these errors were encountered:
This is from Martin's NDC Conference Talk Building Operable Software with TDD (but not the way you think). He explains this in the video why it doesn't test that- you want about 19 minutes in for your specific question.
Here you do not test if saved item actually has title "New Todo" in db (what it if it was not assigned at all?)
My question is why?
The text was updated successfully, but these errors were encountered: