private void AssertDiagramFlow(FlowDiagram flowDiagram, IEnumerable <string> expectedFlowLines) { var dotNotation = flowDiagram.GetDotDiagram(); Assert.NotEmpty(dotNotation); _output.WriteLine(dotNotation); var actualLines = Regex.Split(dotNotation, "\r\n|\r|\n"); foreach (var expectedLine in expectedFlowLines) { Assert.True(actualLines.Any(al => al.Contains(expectedLine)), $"Actual diagram did not contain: {expectedLine}"); } }