Skip to content

Commit

Permalink
potential fix to convention test problems with private setter on IGen…
Browse files Browse the repository at this point in the history
…ericList
  • Loading branch information
ryangribble committed Dec 14, 2015
1 parent 37df149 commit eb01067
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Octokit.Tests.Conventions/ModelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public void ResponseModelsHaveReadOnlyCollections(Type modelType)
continue;
}

// Let's skip collections that only have a private Setter
if (property.SetMethod != null && property.SetMethod.IsPrivate)
{
continue;
}

mutableCollectionProperties.Add(property);
}
}
Expand Down

0 comments on commit eb01067

Please sign in to comment.