Add support for base (proxy) class (#29)

This commit is contained in:
Stef Heyenrath
2022-02-04 11:33:26 +01:00
committed by GitHub
parent 94d322cfb3
commit d7483d6b7e
38 changed files with 400 additions and 309 deletions
@@ -1,7 +1,11 @@
using Xunit.Sdk;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public class Human
{
public bool IsAlive { get; set; }
public string GetterOnly => "x";
}
}
@@ -0,0 +1,6 @@
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial interface IMyStruct
{
}
}
@@ -0,0 +1,7 @@
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public struct MyStruct
{
public int Id { get; set; }
}
}
@@ -1,9 +1,15 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public class Person
public class Person : Human
{
public IList<Human> AddHuman(Human h)
{
return new List<Human> { h, new Human { IsAlive = true } };
}
public string Name { get; set; }
public string? StringNullable { get; set; }
@@ -1,3 +1,4 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace ProxyInterfaceSourceGeneratorTests.Source