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,57 @@
using System.Collections;
using ModestTree;
using UnityEngine.TestTools;
using Zenject.Tests.Installers.MonoInstallers;
namespace Zenject.Tests.Installers
{
public class TestMonoInstallers : ZenjectIntegrationTestFixture
{
[UnityTest]
public IEnumerator TestBadResourcePath()
{
PreInstall();
Assert.Throws(() => FooInstaller.InstallFromResource("TestMonoInstallers/SDFSDFSDF", Container));
PostInstall();
yield break;
}
[UnityTest]
public IEnumerator TestZeroArgs()
{
PreInstall();
FooInstaller.InstallFromResource("TestMonoInstallers/FooInstaller", Container);
PostInstall();
FixtureUtil.AssertResolveCount<Foo>(Container, 1);
yield break;
}
[UnityTest]
public IEnumerator TestOneArg()
{
PreInstall();
BarInstaller.InstallFromResource("TestMonoInstallers/BarInstaller", Container, "blurg");
PostInstall();
Assert.IsEqual(Container.Resolve<string>(), "blurg");
yield break;
}
[UnityTest]
public IEnumerator TestThreeArgs()
{
PreInstall();
QuxInstaller.InstallFromResource("TestMonoInstallers/QuxInstaller", Container, "blurg", 2.0f, 1);
PostInstall();
Assert.IsEqual(Container.Resolve<string>(), "blurg");
yield break;
}
}
}
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 93f2c1be16a3dce4a8a498951113458f
timeCreated: 1476629272
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: