Update Project
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
|
||||
using System.Collections;
|
||||
using ModestTree;
|
||||
using UnityEngine.TestTools;
|
||||
using Zenject.Tests.Installers.Installers;
|
||||
|
||||
namespace Zenject.Tests.Installers
|
||||
{
|
||||
public class TestInstallers : ZenjectIntegrationTestFixture
|
||||
{
|
||||
[UnityTest]
|
||||
public IEnumerator TestZeroArgs()
|
||||
{
|
||||
PreInstall();
|
||||
FooInstaller.Install(Container);
|
||||
|
||||
PostInstall();
|
||||
|
||||
FixtureUtil.AssertResolveCount<Foo>(Container, 1);
|
||||
yield break;
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
public IEnumerator TestOneArg()
|
||||
{
|
||||
PreInstall();
|
||||
BarInstaller.Install(Container, "blurg");
|
||||
|
||||
PostInstall();
|
||||
|
||||
Assert.IsEqual(Container.Resolve<string>(), "blurg");
|
||||
yield break;
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
public IEnumerator TestThreeArgs()
|
||||
{
|
||||
PreInstall();
|
||||
QuxInstaller.Install(Container, "blurg", 2.0f, 1);
|
||||
|
||||
PostInstall();
|
||||
|
||||
Assert.IsEqual(Container.Resolve<string>(), "blurg");
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32558f6368b08f645928a4a03327df55
|
||||
timeCreated: 1476629271
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user