add to ignore test
This commit is contained in:
@@ -8,5 +8,9 @@ namespace ProxyInterfaceConsumer
|
||||
|
||||
public event EventHandler<EventArgs> MyEvent;
|
||||
public int Weird { get; set; }
|
||||
public int Weird2()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,9 @@ internal static class MemberHelper
|
||||
var membersQuery = classSymbol.Symbol.GetMembers().OfType<T>()
|
||||
.Where(m => m.DeclaredAccessibility == Accessibility.Public);
|
||||
|
||||
foreach (var filter in filters)
|
||||
var f = filters.ToList();
|
||||
f.Add(x => !proxyData.MembersToIgnore.Contains(x.Name));
|
||||
foreach (var filter in f)
|
||||
{
|
||||
membersQuery = membersQuery.Where(filter);
|
||||
}
|
||||
|
||||
+8
@@ -81,6 +81,8 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.IFoo2[] Foos { get; set; }
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.IFoo2[] DoSomethingAndGetAnArrayOfFoos();
|
||||
|
||||
int Weird2();
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
@@ -114,6 +116,12 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
return Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.IFoo2[]>(result_1603865878);
|
||||
}
|
||||
|
||||
public int Weird2()
|
||||
{
|
||||
var result__1602200929 = _Instance.Weird2();
|
||||
return result__1602200929;
|
||||
}
|
||||
|
||||
|
||||
public Foo2Proxy(global::ProxyInterfaceSourceGeneratorTests.Source.Foo2 instance)
|
||||
{
|
||||
|
||||
@@ -108,7 +108,7 @@ public class ProxyInterfaceSourceGeneratorTest
|
||||
ArgumentList = new []
|
||||
{
|
||||
"typeof(ProxyInterfaceSourceGeneratorTests.Source.Foo2)", "false", "ProxyClassAccessibility.Public",
|
||||
"new []{\"Weird\"}"
|
||||
"new []{\"Weird\",\"NotHere\"}"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,6 +23,11 @@ public class Foo2
|
||||
{
|
||||
return new[] { new Foo2() };
|
||||
}
|
||||
public int Weird { get; set; }
|
||||
public int Weird2()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//public List<Foo> DoSomethingAndGetAListOfFoos()
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user