Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.

Commit

Permalink
Add test case for PullRequestSystem.GetPreferredCommentFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Apr 3, 2017
1 parent 85675f4 commit 1c41185
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Cake.Prca.Tests/PullRequests/PullRequestSystemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,22 @@ public void Should_Set_Settings()
}
}

public sealed class TheGetPreferredCommentFormatMethod
{
[Fact]
public void Should_Return_PlainText()
{
// Given
var prSystem = new FakePullRequestSystem(new FakeLog());

// When
var result = prSystem.GetPreferredCommentFormat();

// Then
result.ShouldBe(PrcaCommentFormat.PlainText);
}
}

public sealed class TheFetchActiveDiscussionThreadsMethod
{
[Fact]
Expand Down

0 comments on commit 1c41185

Please sign in to comment.