Example #1
0
        public void IsActiveSameAsActivityIsActive()
        {
            DateTime activityActiveDueDate = DateTime.Now;
            Activity activity = Activity.FluentNew("Activity Name").ActiveDueDate(activityActiveDueDate);
            var      viewItem = new ActivityViewItem(activity);

            Assert.That(viewItem.IsActive, Is.EqualTo(activity.IsActive));
        }
Example #2
0
        public void NameSameAsActivityName()
        {
            string   activityName = "Test Activity";
            Activity activity     = Activity.FluentNew(activityName);
            var      viewItem     = new ActivityViewItem(activity);

            Assert.That(viewItem.Name, Is.EqualTo(activityName));
        }