Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,31 @@
using NUnit.Framework;
namespace Zenject
{
// Inherit from this and mark you class with [TestFixture] attribute to do some unit tests
// For anything more complicated than this, such as tests involving interaction between
// several classes, or if you want to use interfaces such as IInitializable or IDisposable,
// then I recommend using ZenjectIntegrationTestFixture instead
// See documentation for details
public abstract class ZenjectUnitTestFixture
{
DiContainer _container;
protected DiContainer Container
{
get { return _container; }
}
[SetUp]
public virtual void Setup()
{
_container = new DiContainer(StaticContext.Container);
}
[TearDown]
public virtual void Teardown()
{
StaticContext.Clear();
}
}
}