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);
 }
示例#3
0
        public void RetrieveDescriptionOrNameRetrievesTheNameWhenDescriptionIsNotSet()
        {
            var task = new TestTask();

            task.Description = null;
            var actual = task.RetrieveDescriptionOrName();

            Assert.AreEqual(task.GetType().Name, actual);
        }
示例#4
0
        public void RetrieveDescriptionOrNameRetrievesTheDescriptionWhenDescriptionIsSet()
        {
            var task = new TestTask();

            task.Description = "Test Task";
            var actual = task.RetrieveDescriptionOrName();

            Assert.AreEqual(task.Description, actual);
        }