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,45 @@
using NUnit.Framework;
using Assert = ModestTree.Assert;
namespace Zenject.Tests.Bindings
{
[TestFixture]
public class TestNonLazy : ZenjectUnitTestFixture
{
[Test]
public void Test1()
{
Container.Bind<Foo>().AsSingle().NonLazy();
Assert.Throws(() => Container.ResolveRoots());
}
[Test]
public void Test2()
{
Container.Bind<Foo>().AsSingle();
Container.ResolveRoots();
}
[Test]
public void Test3()
{
Container.Bind<Foo>().AsSingle().NonLazy();
Container.Bind<Bar>().AsSingle();
Container.ResolveRoots();
}
public class Foo
{
public Foo(Bar bar)
{
}
}
public class Bar
{
}
}
}