Fix static properties not being ignored
This commit is contained in:
@@ -233,6 +233,16 @@ namespace InterfaceGenerator.Tests
|
||||
|
||||
method.Should().BeNull();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void StaticMethod_IsOmitted()
|
||||
{
|
||||
var method = typeof(IMethodsTestService)
|
||||
.GetMethods()
|
||||
.FirstOrDefault(x => x.Name == nameof(MethodsTestService.StaticMethod));
|
||||
|
||||
method.Should().BeNull();
|
||||
}
|
||||
}
|
||||
|
||||
[GenerateAutoInterface]
|
||||
@@ -300,6 +310,11 @@ namespace InterfaceGenerator.Tests
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static void StaticMethod()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[GenerateAutoInterface]
|
||||
|
||||
Reference in New Issue
Block a user