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,42 @@
using System.Collections.Generic;
using NUnit.Framework;
using Assert = ModestTree.Assert;
namespace Zenject.Tests.Other
{
[TestFixture]
public class TestResolveMany : ZenjectUnitTestFixture
{
class Test0
{
}
class Test1 : Test0
{
}
class Test2 : Test0
{
}
[Test]
public void TestCase1()
{
Container.Bind<Test0>().To<Test1>().AsSingle();
Container.Bind<Test0>().To<Test2>().AsSingle();
List<Test0> many = Container.ResolveAll<Test0>();
Assert.That(many.Count == 2);
}
[Test]
public void TestOptional()
{
List<Test0> many = Container.ResolveAll<Test0>();
Assert.That(many.Count == 0);
}
}
}