public void When_serializing_workfow_then_deserialization_should_work() { //// Arrange var workflow = Given_a_workflow_with_three_serial_empty_activities(); //// Act var workflowXml = workflow.ToXml(); var workflow2 = WorkflowDefinition.FromXml(workflowXml, _activityTypes); var workflowXml2 = workflow2.ToXml(); //// Assert Assert.AreEqual(workflowXml, workflowXml2); }