public void When_EstimatedTimeIsDefinedAs0min_Expect_AnotherEstimatedTimeWontBeAppended() { // Arrange var sut = new TodoTask(); sut.content = "Buy carrots in the shop (0 min)"; sut.SetOriginalDurationInMinutes(0); sut.time = 10; // minutes // Act var newContent = sut.contentWithTime; // Assert Assert.AreEqual(sut.content, newContent); Assert.AreEqual("Buy carrots in the shop (0 min)", newContent); }
public void When_EstimatedTimeWasNotChangedByTheUser_Expect_NoChangeInContent() { // Arrange var sut = new TodoTask(); sut.content = "Buy carrots (10 min) in the shop"; sut.SetOriginalDurationInMinutes(10); sut.time = 10; // minutes // Act var newContent = sut.contentWithTime; // Assert Assert.AreEqual(sut.content, newContent); Assert.AreEqual("Buy carrots (10 min) in the shop", newContent); }