public static string Build_with_values_for_all_options_builds_expected_command() { var sut = new CommandBuilderWithDraftSupport(); return(sut.WithReviewers("mygroup") .WithCC("team2") .WithTopic("ABC-123") .WithPublishType(string.Empty) .WithHashTag("what") .Build("fix-7521")); }
public static string Build_with_all_values_on_default_builds_expected_command() { var sut = new CommandBuilderWithDraftSupport(); return(sut.WithReviewers(string.Empty) .WithCC(string.Empty) .WithTopic(string.Empty) .WithPublishType(string.Empty) .WithHashTag(string.Empty) .Build("fix-7521")); }
public static string Build_when_publishtype_is_drafts_builds_expected_command() { var sut = new CommandBuilderWithDraftSupport(); return(sut.WithReviewers("a").WithPublishType("drafts").Build("master")); }
public static string Build_WithReviewers_splits_reviewrs_and_builds_expected_command(string reviewer, string branch) { var sut = new CommandBuilderWithDraftSupport(); return(sut.WithReviewers(reviewer).Build(branch)); }