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,33 @@
using NUnit.Framework;
using Assert = ModestTree.Assert;
namespace Zenject.Tests.BindFeatures
{
[TestFixture]
public class TestRebind : ZenjectUnitTestFixture
{
interface ITest
{
}
class Test2 : ITest
{
}
class Test3 : ITest
{
}
[Test]
public void Run()
{
Container.Bind<ITest>().To<Test2>().AsSingle();
Assert.That(Container.Resolve<ITest>() is Test2);
Container.Rebind<ITest>().To<Test3>().AsSingle();
Assert.That(Container.Resolve<ITest>() is Test3);
}
}
}