From 64b200ddfdb298163711eac4625148e336f63f4c Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Mon, 3 Apr 2017 10:54:38 +0200 Subject: [PATCH] Call base.GetPreferredCommentFormat to have better test coverage --- src/Cake.Prca.Tests/FakePullRequestSystem.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Cake.Prca.Tests/FakePullRequestSystem.cs b/src/Cake.Prca.Tests/FakePullRequestSystem.cs index 4172b06..4d61c65 100644 --- a/src/Cake.Prca.Tests/FakePullRequestSystem.cs +++ b/src/Cake.Prca.Tests/FakePullRequestSystem.cs @@ -16,6 +16,7 @@ public class FakePullRequestSystem : PullRequestSystem public FakePullRequestSystem(ICakeLog log) : base(log) { + this.Initialize(); } public FakePullRequestSystem( @@ -35,6 +36,8 @@ public FakePullRequestSystem( // ReSharper disable once PossibleMultipleEnumeration this.modifiedFiles.AddRange(modifiedFiles); + + this.Initialize(); } public new ICakeLog Log => base.Log; @@ -45,7 +48,7 @@ public FakePullRequestSystem( public IEnumerable PostedIssues => this.postedIssues; - public PrcaCommentFormat CommentFormat { get; set; } = PrcaCommentFormat.PlainText; + public PrcaCommentFormat CommentFormat { get; set; } public override PrcaCommentFormat GetPreferredCommentFormat() { @@ -79,5 +82,10 @@ protected override void InternalPostDiscussionThreads(IEnumerable