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,38 @@
using NUnit.Framework;
using Assert = ModestTree.Assert;
namespace Zenject.Tests.Conditions
{
[TestFixture]
public class TestConditionsTargetInstance : ZenjectUnitTestFixture
{
class Test0
{
}
class Test1
{
[Inject]
public Test0 test0 = null;
}
Test1 _test1;
public override void Setup()
{
base.Setup();
_test1 = new Test1();
Container.Bind<Test0>().AsSingle().When(r => r.ObjectInstance == _test1);
Container.Bind<Test1>().FromInstance(_test1);
}
[Test]
public void TestTargetConditionError()
{
Container.Inject(_test1);
Assert.That(_test1.test0 != null);
}
}
}