Files
octokit.net/Octokit.Tests.Conventions/Exception/MissingPublicParameterlessCtorException.cs
Ryan Gribble e3fa865381 add convention test to ensure all response models have a public parameterless ctor
2 model classes were missing one - technically not needed for these 2 classes due to their api calls being basic data types that then get populated into these objects, but it's easiest to just add them to these 2 classes so the test can pass on all response models
2016-07-05 23:32:40 +10:00

11 lines
375 B
C#

using System;
namespace Octokit.Tests.Conventions
{
public class MissingPublicParameterlessCtorException : Exception
{
public MissingPublicParameterlessCtorException(Type modelType)
: base(string.Format("Model type '{0}' is missing a Public Parameterless Constructor required by SimpleJson Deserializer.", modelType.FullName))
{ }
}
}