예제 #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));
        }
예제 #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));
        }