public void Last_event_can_be_null() { var workflowHistoryEvents = new WorkflowHistoryEvents(_eventGraphBuilder.WorkflowStartedGraph()); _workflow.SetupGet(w => w.WorkflowHistoryEvents).Returns(workflowHistoryEvents); var activityItem = new ActivityItem(_activityIdentity, _workflow.Object); var latestEvent = activityItem.LastEvent(); Assert.IsNull(latestEvent); }