Update Project

This commit is contained in:
2026-03-20 13:04:43 +02:00
parent 9b587e6cba
commit beae2dea89
2295 changed files with 251259 additions and 33 deletions
@@ -0,0 +1,44 @@
using NUnit.Framework;
using Assert = ModestTree.Assert;
namespace Zenject.Tests.Injection
{
[TestFixture]
public class TestBaseClassPropertyInjection : ZenjectUnitTestFixture
{
class Test0
{
}
class Test3
{
}
class Test1 : Test3
{
[Inject] protected Test0 val = null;
public Test0 GetVal()
{
return val;
}
}
class Test2 : Test1
{
}
[Test]
public void TestCaseBaseClassPropertyInjection()
{
Container.Bind<Test0>().AsSingle().NonLazy();
Container.Bind<Test2>().AsSingle().NonLazy();
var test1 = Container.Resolve<Test2>();
Assert.That(test1.GetVal() != null);
}
}
}