mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Fixed failing tests
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
@@ -10,10 +12,12 @@ namespace Octokit
|
||||
|
||||
public Merge(Author author, Author committer, Commit commit, IEnumerable<GitReference> parents, string commentsUrl, int commentCount, string htmlUrl)
|
||||
{
|
||||
Ensure.ArgumentNotNull(parents, "parents");
|
||||
|
||||
Author = author;
|
||||
Committer = committer;
|
||||
Commit = commit;
|
||||
Parents = parents;
|
||||
Parents = new ReadOnlyCollection<GitReference>(parents.ToList());
|
||||
CommentsUrl = commentsUrl;
|
||||
CommentCount = commentCount;
|
||||
HtmlUrl = htmlUrl;
|
||||
@@ -22,7 +26,7 @@ namespace Octokit
|
||||
public Author Author { get; protected set; }
|
||||
public Author Committer { get; protected set; }
|
||||
public Commit Commit { get; protected set; }
|
||||
public IEnumerable<GitReference> Parents { get; protected set; }
|
||||
public IReadOnlyList<GitReference> Parents { get; protected set; }
|
||||
public string CommentsUrl { get; protected set; }
|
||||
public int CommentCount { get; protected set; }
|
||||
public string HtmlUrl { get; protected set; }
|
||||
|
||||
Reference in New Issue
Block a user