Exemple #1
0
        public void Given_Null_Parameters_When_WithCommitTitle_Invoked_Then_It_Return_Value(string value, string expected)
        {
            var mpr = new MergePullRequest();

            var result = MergePullRequestExtensions.WithCommitTitle(mpr, value);

            result.CommitTitle.Should().BeEquivalentTo(expected);
        }
Exemple #2
0
        public void Given_Null_Parameters_When_WithCommitTitle_Invoked_Then_It_Throws_Exception()
        {
            Action action = () => MergePullRequestExtensions.WithCommitTitle(null, null);

            action.Should().Throw <ArgumentNullException>();
        }