public void Test_SetEventDataIsCalled() { WorkflowBuilder builder = new WorkflowBuilder(); DataReceivedEventReceiver eventReceiver = new DataReceivedEventReceiver(); builder.Add(eventReceiver); var context = builder.Compile(); context.PublishEvent(new DataReceivedEventData() { Data = "data"}); context.Run(); Assert.That(eventReceiver.Data, Is.EqualTo("data")); }