Add unit test for generic class + change generated filename (#50)

This commit is contained in:
Stef Heyenrath
2023-01-08 09:10:17 +01:00
committed by GitHub
parent 0df5944d06
commit d25601cf22
7 changed files with 139 additions and 6 deletions
@@ -0,0 +1,42 @@
//----------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------------------------------------------------------
#nullable enable
using System;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial class GenericProxy<T> : IGeneric<T>
{
public ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
public T Test(T value)
{
T value_ = value;
var result__1701808026 = _Instance.Test(value_);
return result__1701808026;
}
public GenericProxy(ProxyInterfaceSourceGeneratorTests.Source.Generic<T> instance)
{
_Instance = instance;
}
}
}
#nullable disable
@@ -0,0 +1,28 @@
//----------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------------------------------------------------------
#nullable enable
using System;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial interface IGeneric<T>
{
ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
T Test(T value);
}
}
#nullable disable