private void GetLaneInfo_should_display(RevisionGraphRevision node, string prefix = "", string suffix = "") { _infoProvider.GetLaneInfo(0, 0).Should() .Be(string.Format("{0}{1}{2}{2}{3}{4}", prefix, node.GitRevision.Guid, Environment.NewLine, node.GitRevision.Body, suffix)); }
private void GetLaneInfo_should_display(RevisionGraphRevision node, string branch = null, string mergedWith = null, string prefix = "", string suffix = "") { _infoProvider.GetLaneInfo(0, 0).Should() .Be(string.Format(branch == null ? "{0}{1}{2}{2}{6}{7}" : "{0}{1}{2}\n{3}: {4}{5}{2}{6}{7}", prefix, node.GitRevision.Guid, Environment.NewLine, Strings.Branch, branch, mergedWith == null ? "" : string.Format(LaneInfoProvider.TestAccessor.MergedWithText.Text, mergedWith), node.GitRevision.Body, suffix)); }