Beispiel #1
0
    public void Test_Update_UpdatesTaskInDatabase()
    {
      //Arrange
      string description = "Mow the lawn";
      Task testTask = new Task(description);
      testTask.Save();
      string newDescription = "Walk the dog";

      //Act
      testTask.Update(newDescription);
      string result = testTask.GetDescription();

      //Assert
      Assert.Equal(newDescription, result);
    }