diff --git a/Octokit.Tests.Conventions/ModelTests.cs b/Octokit.Tests.Conventions/ModelTests.cs index f126e8cd57..c0b2dd8cc3 100644 --- a/Octokit.Tests.Conventions/ModelTests.cs +++ b/Octokit.Tests.Conventions/ModelTests.cs @@ -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); } }