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)); }
public void NameSameAsActivityName() { string activityName = "Test Activity"; Activity activity = Activity.FluentNew(activityName); var viewItem = new ActivityViewItem(activity); Assert.That(viewItem.Name, Is.EqualTo(activityName)); }