diff --git a/src/Tests/BuildApiTest.cs b/src/Tests/BuildApiTest.cs index 582708c6..5fc39ee8 100644 --- a/src/Tests/BuildApiTest.cs +++ b/src/Tests/BuildApiTest.cs @@ -31,7 +31,6 @@ public void Run() writer.WriteLine($"### Extension methods"); writer.WriteLine(); foreach (var type in PublicMethods(extensions.Methods) - .Where(_ => !_.IsConstructor) .GroupBy(_ => _.Parameters[0].ParameterType.FullName) .OrderBy(_ => _.Key)) { @@ -59,7 +58,7 @@ static string GetTypeName(string targetType) } static IEnumerable PublicMethods(IEnumerable type) => - type.Where(_=>_.IsPublic) + type.Where(_=>_ is {IsPublic: true, IsConstructor: false}) .OrderBy(_ => _.Name); static void WriteSignature(MethodDefinition method, StreamWriter writer)