Fixed failing tests

This commit is contained in:
Kristian Hellang
2015-01-06 09:28:42 +01:00
parent 273ad8acdc
commit 2508205cfd
11 changed files with 48 additions and 22 deletions
+6 -2
View File
@@ -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; }