public void RetrieveDescriptionOrNameRetrievesTheNameWhenDescriptionIsNotSet() { var task = new TestTask(); task.Description = null; var actual = task.RetrieveDescriptionOrName(); Assert.AreEqual(task.GetType().Name, actual); }
public void RetrieveDescriptionOrNameRetrievesTheDescriptionWhenDescriptionIsSet() { var task = new TestTask(); task.Description = "Test Task"; var actual = task.RetrieveDescriptionOrName(); Assert.AreEqual(task.Description, actual); }