diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip deleted file mode 100644 index 815459d6d..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta deleted file mode 100644 index b2bbcfc80..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0aeabfd115c8a4b0ea6377d7970134a2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip deleted file mode 100644 index ae271a1ad..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip.meta deleted file mode 100644 index 716de8492..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoSubstitute.zip.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3d9bd58f4dad04d4aa76be96981ea7d1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests.meta deleted file mode 100644 index f8a62f6cd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f8d518813058ccd4c8ce2eb0a99748b5 -folderAsset: yes -timeCreated: 1462057592 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings.meta deleted file mode 100644 index 1306e460a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7f6f9d65a88fb494aab5df05742f31f1 -folderAsset: yes -timeCreated: 1476626359 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods.meta deleted file mode 100644 index addc4cd15..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 3a875c53fb6af544392d924deaee54bc -folderAsset: yes -timeCreated: 1486605381 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs deleted file mode 100644 index 8e54c36f3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.DiContainerMethods -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - public bool WasInjected - { - get; - private set; - } - - [Inject] - public void Construct() - { - WasInjected = true; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs.meta deleted file mode 100644 index 918a82348..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 576295a2c4f9589448e9441994df8491 -timeCreated: 1486605381 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs deleted file mode 100644 index 7c8daa636..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs +++ /dev/null @@ -1,20 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.DiContainerMethods -{ - //[CreateAssetMenu(fileName = "Foo2", menuName = "Test/Foo2")] - public class Foo2 : ScriptableObject - { - public bool WasInjected - { - get; - private set; - } - - [Inject] - public void Construct() - { - WasInjected = true; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs.meta deleted file mode 100644 index 31bb58276..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Foo2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2fb66836df088014081bc2f5740ecea1 -timeCreated: 1486677525 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs deleted file mode 100644 index 55079c53c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs +++ /dev/null @@ -1,24 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.DiContainerMethods -{ - public class Gorp : MonoBehaviour - { - [Inject] - string _arg; - - public string Arg - { - get { return _arg; } - } - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Gorp", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs.meta deleted file mode 100644 index 44f0515c8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 33197ae07a0a36e41bf9fa09aa8d0ce6 -timeCreated: 1486605381 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs deleted file mode 100644 index 690b4f9e1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs +++ /dev/null @@ -1,25 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.DiContainerMethods -{ - //[CreateAssetMenu(fileName = "Gorp2", menuName = "Test/Gorp2")] - public class Gorp2 : ScriptableObject - { - [Inject] - string _arg; - - public string Arg - { - get { return _arg; } - } - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Gorp", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs.meta deleted file mode 100644 index 133603380..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestDiContainerMethods/Gorp2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 952b7cab572c9c24cb1e7ca240e67c84 -timeCreated: 1486677525 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta deleted file mode 100644 index c529b5a96..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 57ec93299bdbd4942b248df9c72a6c6b -folderAsset: yes -timeCreated: 1485743417 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs deleted file mode 100644 index 89a714569..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromComponentInHierarchyGameObjectContext -{ - public class Foo : MonoBehaviour - { - [NonSerialized] - [Inject] - public Gorp Gorp; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs.meta deleted file mode 100644 index 7389fa53a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: aface7ec58475d840a11bf38361406a2 -timeCreated: 1485743976 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs deleted file mode 100644 index 064c45d41..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromComponentInHierarchyGameObjectContext -{ - public class FooInstaller : MonoInstaller - { - [SerializeField] - Foo _foo; - - public override void InstallBindings() - { - Container.Bind().FromInstance(_foo).AsSingle(); - Container.Bind().FromComponentInHierarchy().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs.meta deleted file mode 100644 index d4ae7afc8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0cdb37bf9eda440448d25e272bf9cd32 -timeCreated: 1485743626 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs deleted file mode 100644 index 180a240e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromComponentInHierarchyGameObjectContext -{ - public class Gorp : MonoBehaviour - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs.meta deleted file mode 100644 index c59989c2c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromComponentInHierarchyGameObjectContext/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 972b6ec83b1c10046b0f01f4692b1ddc -timeCreated: 1485743627 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller.meta deleted file mode 100644 index 2f930da2d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: dcd70555f30b7b546896efe5cd27daea -folderAsset: yes -timeCreated: 1538468409 -licenseType: Pro -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs deleted file mode 100644 index aaea139e6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromGameObjectInstaller -{ - public class Bar : MonoBehaviour - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs.meta deleted file mode 100644 index 01c88bd9b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Bar.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 08c786d92d7b8294e9aedb09fe828957 -timeCreated: 1538468409 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs deleted file mode 100644 index 71c339fe4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromGameObjectInstaller -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs.meta deleted file mode 100644 index 02ad3551b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromGameObjectInstaller/Foo.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: bcbcf02922433d14eb1175ebd810eb0d -timeCreated: 1538468409 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource.meta deleted file mode 100644 index 3e87c0229..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dbe191c1fd499d24f872e3615dd5dc90 -folderAsset: yes -timeCreated: 1506426158 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs deleted file mode 100644 index 042c01295..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs +++ /dev/null @@ -1,21 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromNewScriptableObjectResource -{ - //[CreateAssetMenu(fileName = "Bob", menuName = "Test/Bob")] - public class Bob : ScriptableObject - { - public string Arg - { - get; - private set; - } - - [Inject] - public void Construct(string arg) - { - Arg = arg; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs.meta deleted file mode 100644 index 9ac74235f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Bob.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9e40755b32ffa6f4fb5f67e0612fc480 -timeCreated: 1486670038 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs deleted file mode 100644 index ed3c330a1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromNewScriptableObjectResource -{ - public interface IFoo - { - } - - //[CreateAssetMenu(fileName = "Foo", menuName = "Test/Foo")] - public class Foo : ScriptableObject, IFoo - { - public static int InstanceCount - { - get; - set; - } - - public bool WasInjected - { - get; - private set; - } - - [Inject] - public void Construct() - { - WasInjected = true; - InstanceCount++; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs.meta deleted file mode 100644 index 892084020..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromNewScriptableObjectResource/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 70da936d4db31fa4a9f79f7af7604209 -timeCreated: 1486615350 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab.meta deleted file mode 100644 index 6edb04b29..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dd55361784401314ab1c348b1eaf6ca4 -folderAsset: yes -timeCreated: 1476623442 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs deleted file mode 100644 index 3c513e3ff..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Bar : MonoBehaviour - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs.meta deleted file mode 100644 index 4017215d5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 86870631eb8b52e409ad0b86fd44aad7 -timeCreated: 1458314694 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs deleted file mode 100644 index a8f263a89..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Bob : MonoBehaviour - { - [NonSerialized] - [Inject] - public Jim Jim; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs.meta deleted file mode 100644 index fb8b415f8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Bob.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: aeb709c66d821b242b8e5016c31bb2d2 -timeCreated: 1459009627 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs deleted file mode 100644 index 371952150..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs.meta deleted file mode 100644 index 9bec9821e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f39c997bb2d185144bc18d37878d4ab8 -timeCreated: 1458245958 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs deleted file mode 100644 index 7136c60bf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs +++ /dev/null @@ -1,24 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Gorp : MonoBehaviour - { - [Inject] - string _arg; - - public string Arg - { - get { return _arg; } - } - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Gorp", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs.meta deleted file mode 100644 index b2876cf0c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: cc679fbba1bf0a645957d68235c4771d -timeCreated: 1459002694 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs deleted file mode 100644 index 00770f1d4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Jim : MonoBehaviour - { - [NonSerialized] - [Inject] - public Bob Bob; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs.meta deleted file mode 100644 index 4fe62bd3e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Jim.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 78b17c518e97edb498c1ff8a4d914bd5 -timeCreated: 1459009626 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs deleted file mode 100644 index aecf00bc1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public interface INorf - { - } - - public class Norf : MonoBehaviour, INorf - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs.meta deleted file mode 100644 index ca29f2890..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 91f7cce5532e4cc4796d58d33d783a80 -timeCreated: 1459008624 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs deleted file mode 100644 index cf72adbff..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Norf2 : MonoBehaviour, INorf - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs.meta deleted file mode 100644 index c9ba6a310..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Norf2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8fb03bf3db5129643a756826728ce939 -timeCreated: 1459008655 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs deleted file mode 100644 index 43739624e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs +++ /dev/null @@ -1,19 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromPrefab -{ - public class Qux : MonoBehaviour - { - [Inject] - int _arg; - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Qux", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs.meta deleted file mode 100644 index ea9ec0539..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefab/Qux.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 914f813dee2b8b248bce3b21eafa7b6e -timeCreated: 1459002695 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller.meta deleted file mode 100644 index d4d235e43..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1e17a9fb937bef141885bff88f8381ae -folderAsset: yes -timeCreated: 1528215846 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs deleted file mode 100644 index 2819e65e6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabInstaller -{ - public class Bar : MonoBehaviour - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs.meta deleted file mode 100644 index e0a6320dc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Bar.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: bb22de5ed5e7e0b42ba9a44744605d30 -timeCreated: 1458314694 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs deleted file mode 100644 index a065ee6cb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabInstaller -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs.meta deleted file mode 100644 index 33e51fe1c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabInstaller/Foo.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 7ba7fc00ff58d414db79307d68a49cbe -timeCreated: 1458245958 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource.meta deleted file mode 100644 index 6ef91574f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 43f9f1bff6bc4694bbb81f3e5472349d -folderAsset: yes -timeCreated: 1476625194 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs deleted file mode 100644 index b31bc6c8e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Bar : MonoBehaviour - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs.meta deleted file mode 100644 index 21f2aebb0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 09cb1c767472bd447ab51093e4a17ad3 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs deleted file mode 100644 index c8b746399..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Bob : MonoBehaviour - { - [NonSerialized] - [Inject] - public Jim Jim; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs.meta deleted file mode 100644 index 915a87648..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Bob.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 93bfc10f4bb073945911d600dea398a5 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs deleted file mode 100644 index 33c06d59f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs.meta deleted file mode 100644 index e43ec2b53..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c4fe41d55bac23c408a020415051f590 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs deleted file mode 100644 index cc97e801c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs +++ /dev/null @@ -1,19 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Gorp : MonoBehaviour - { - [Inject] - string _arg; - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Gorp", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs.meta deleted file mode 100644 index 9874b539e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 93bd1149166ed44478c2e59b34fbfc9b -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs deleted file mode 100644 index 63a6f2821..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Jim : MonoBehaviour - { - [NonSerialized] - [Inject] - public Bob Bob; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs.meta deleted file mode 100644 index 2ca71b84c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Jim.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6dd802b9b69c51443af5311b06b79ca0 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs deleted file mode 100644 index 95ae8cf96..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public interface INorf - { - } - - public class Norf : MonoBehaviour, INorf - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs.meta deleted file mode 100644 index defc63a37..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 434e869aa9c49e046b97da50b0dfa819 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs deleted file mode 100644 index dc0582abf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Norf2 : MonoBehaviour, INorf - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs.meta deleted file mode 100644 index 20d270be4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Norf2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: cf6600df40401e046af9c2ebfbf58b46 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs deleted file mode 100644 index d41daa6d4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs +++ /dev/null @@ -1,19 +0,0 @@ -using ModestTree; -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromPrefabResource -{ - public class Qux : MonoBehaviour - { - [Inject] - int _arg; - - [Inject] - public void Initialize() - { - Log.Trace("Received arg '{0}' in Qux", _arg); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs.meta deleted file mode 100644 index 60c540b9d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromPrefabResource/Qux.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b244b0173d6179840b86ed145aaa6bb2 -timeCreated: 1459015737 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab.meta deleted file mode 100644 index b8173ea4c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e3de9ebd386101446b259aa5e2385e2a -folderAsset: yes -timeCreated: 1476626071 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs deleted file mode 100644 index 133c8b382..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public class Bar : MonoBehaviour - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs.meta deleted file mode 100644 index af83b1a81..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2161a6f5a67bb7749bb74037a259ca72 -timeCreated: 1460644405 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs deleted file mode 100644 index 20c646881..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public class CircBar : MonoBehaviour - { - [Inject] - public CircFoo Foo; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs.meta deleted file mode 100644 index 537921aea..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircBar.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a9b1995fe11e44134aff82b87c9ad47d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs deleted file mode 100644 index 662fc53f4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public class CircFoo : MonoBehaviour - { - [Inject] - public CircBar Bar; - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs.meta deleted file mode 100644 index 824ee200d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/CircFoo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 617897a56465c40ee8de5e479395fbc8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs deleted file mode 100644 index a9fe4cf39..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs.meta deleted file mode 100644 index 94c723c39..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6997e435baf0c60488bc2bc179014813 -timeCreated: 1460508139 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs deleted file mode 100644 index 94b8ac75a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public class FooInstaller : MonoInstaller - { - [SerializeField] - Bar _bar; - - public override void InstallBindings() - { - Container.BindInstance(_bar); - Container.Bind().WithId("gorp").AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs.meta deleted file mode 100644 index 9ded5b7c1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0a2394e0baff5a347bdf60d1c2c913d1 -timeCreated: 1460644513 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs deleted file mode 100644 index bb8d3397c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Zenject.Tests.Bindings.FromSubContainerPrefab -{ - public class Gorp - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs.meta deleted file mode 100644 index bad574f02..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefab/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e7443e55301b94c48944434e69fb7828 -timeCreated: 1460644406 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource.meta deleted file mode 100644 index 64d0c7cb5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 47244319f65e63e45a9d2e73b1fa0169 -folderAsset: yes -timeCreated: 1476626323 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs deleted file mode 100644 index 11bc6d8e6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefabResource -{ - public class Bar : MonoBehaviour - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs.meta deleted file mode 100644 index cf891cf47..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 850feee7ebf0de346ba632c2b2abdc64 -timeCreated: 1460654591 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs deleted file mode 100644 index fad03594b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.FromSubContainerPrefabResource -{ - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo - { - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs.meta deleted file mode 100644 index 148bf5762..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b3d9dd215537204498109ca7ed42833c -timeCreated: 1460654592 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs deleted file mode 100644 index fad0e9f69..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -using UnityEngine; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings.FromSubContainerPrefabResource -{ - public class FooInstaller : MonoInstaller - { - [SerializeField] - Bar _bar; - - public override void InstallBindings() - { - Container.BindInstance(_bar); - Container.Bind().WithId("gorp").AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs.meta deleted file mode 100644 index 89e3ff664..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a30bc985de2744a49add38b40ccf532a -timeCreated: 1460654592 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs deleted file mode 100644 index e1d18effe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Zenject.Tests.Bindings.FromSubContainerPrefabResource -{ - public class Gorp - { - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs.meta deleted file mode 100644 index 3b94dddfb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestFromSubContainerPrefabResource/Gorp.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ddd55da12d9bf754fb0752461ce83ab7 -timeCreated: 1460654592 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback.meta deleted file mode 100644 index a68166826..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 2c774e7957714254ba938232b8183e92 -folderAsset: yes -timeCreated: 1535264071 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs deleted file mode 100644 index f0e3f0cdf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Bindings.InstantiateCallback -{ - public class Foo : MonoBehaviour - { - public string Value - { - get; set; - } - - public bool WasInjected - { - get; - private set; - } - - [Inject] - public void Construct() - { - WasInjected = true; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs.meta deleted file mode 100644 index d68bd45b5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Bindings/TestInstantiateCallback/Foo.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: f2a3cbbac172d9d47af76aca9a4d0229 -timeCreated: 1535264071 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories.meta deleted file mode 100644 index 5ff851561..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 58233303e8aad274bb44223c4fe67d5e -folderAsset: yes -timeCreated: 1476626394 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory.meta deleted file mode 100644 index d224a843a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bc7d7c70b60a2a14eb9d59f39df3d01b -folderAsset: yes -timeCreated: 1476627232 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs deleted file mode 100644 index a62985f54..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.PrefabFactory -{ - public class Foo : MonoBehaviour - { - public bool WasInitialized; - - [Inject] - public void Init() - { - WasInitialized = true; - } - - public class Factory : PlaceholderFactory - { - } - - public class Factory2 : PlaceholderFactory - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs.meta deleted file mode 100644 index bf76f58c6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 724cacdf997720a47b671d0a4dc6bb0f -timeCreated: 1461166024 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs deleted file mode 100644 index f71f22d87..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.PrefabFactory -{ - public class Foo2 : MonoBehaviour - { - [Inject] - public string Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - - public class Factory2 : PlaceholderFactory - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs.meta deleted file mode 100644 index fe9a17309..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/PrefabFactory/Foo2.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 8aaa72f0222c9a84b9ff566b4609e4a5 -timeCreated: 1534319941 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources.meta deleted file mode 100644 index 976b2e8d5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c6f79b169ed165643b8e9c8853fa69f2 -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory.meta deleted file mode 100644 index c71b842cd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 14e8d31130cd8a34bae61af0491d300d -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset deleted file mode 100644 index 216eddfde..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f65e28d0debda63429efbca8a5e6ee69, type: 3} - m_Name: Bar - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset.meta deleted file mode 100644 index a31a7eb75..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Bar.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c910fc8c1b89e63428292071be74fb96 -timeCreated: 1487537775 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab deleted file mode 100644 index b9d462518..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab +++ /dev/null @@ -1,102 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1976089539457028} - m_IsPrefabParent: 1 ---- !u!1 &1976089539457028 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4820708267059456} - - component: {fileID: 20551869419536700} - - component: {fileID: 124884577352525608} - - component: {fileID: 92930362624271806} - - component: {fileID: 81582071896233372} - m_Layer: 0 - m_Name: Camera - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4820708267059456 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1976089539457028} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!20 &20551869419536700 -Camera: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1976089539457028} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!81 &81582071896233372 -AudioListener: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1976089539457028} - m_Enabled: 1 ---- !u!92 &92930362624271806 -Behaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1976089539457028} - m_Enabled: 1 ---- !u!124 &124884577352525608 -Behaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1976089539457028} - m_Enabled: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab.meta deleted file mode 100644 index 3d704c5ae..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Camera.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4b06f8082448e80458c9e2a87fef6131 -timeCreated: 1486607599 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab deleted file mode 100644 index a8fbe420e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &162430 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 447808} - - component: {fileID: 11404662} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &447808 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162430} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11404662 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162430} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d2d5f4f0d25441b4b8dbdcf3e25815a4, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162430} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab.meta deleted file mode 100644 index 6036d8a92..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1f6c6b0b26248ff40ab262d17954f3cd -timeCreated: 1459026819 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab deleted file mode 100644 index c5b5608be..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab +++ /dev/null @@ -1,116 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &106024 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 432184} - - component: {fileID: 11419678} - - component: {fileID: 11408080} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!1 &162430 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 447808} - - component: {fileID: 11464440} - m_Layer: 0 - m_Name: FooSubContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &432184 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 106024} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 447808} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &447808 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162430} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 432184} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11408080 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 106024} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 11419678} - _identifier: - _context: {fileID: 0} - _bindType: 0 ---- !u!114 &11419678 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 106024} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d2d5f4f0d25441b4b8dbdcf3e25815a4, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11464440 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162430} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: [] - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162430} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab.meta deleted file mode 100644 index 3a4c78c2a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/FooSubContainer.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5c4623f8776b50946bec4dd4e9b322e1 -timeCreated: 1460652820 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png deleted file mode 100644 index ae559b970..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png.meta deleted file mode 100644 index d5b0c30c3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactory/TestTexture.png.meta +++ /dev/null @@ -1,57 +0,0 @@ -fileFormatVersion: 2 -guid: 7dd391639aa29ed45a73e9a214f4872c -timeCreated: 1459032868 -licenseType: Pro -TextureImporter: - fileIDToRecycleName: {} - serializedVersion: 2 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - linearTexture: 0 - correctGamma: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 0 - cubemapConvolution: 0 - cubemapConvolutionSteps: 7 - cubemapConvolutionExponent: 1.5 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 2048 - textureSettings: - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapMode: -1 - nPOTScale: 1 - lightmap: 0 - rGBM: 0 - compressionQuality: 50 - allowsAlphaSplitting: 0 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spritePixelsToUnits: 100 - alphaIsTransparency: 0 - textureType: -1 - buildTargetSettings: [] - spriteSheet: - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive.meta deleted file mode 100644 index 6c8b959c5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 2a7d2ad9e0a2ce344bf0b032c2a3b08f -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab deleted file mode 100644 index 11cb9c96f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &115482 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 444256} - - component: {fileID: 11480358} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &444256 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 115482} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -37.141693, y: 4.1177154, z: 8.340115} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11480358 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 115482} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ee5b82f7221fdcb499856642f6436061, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 115482} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab.meta deleted file mode 100644 index 56608c026..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5c07ac3e518881e48885b91850c2f13c -timeCreated: 1460650304 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab deleted file mode 100644 index 913430578..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab +++ /dev/null @@ -1,71 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &136558 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 434280} - - component: {fileID: 11447176} - - component: {fileID: 11491928} - m_Layer: 0 - m_Name: FooSubContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &434280 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 136558} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -37.141693, y: 4.1177154, z: 8.340115} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11447176 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 136558} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 11491928} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &11491928 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 136558} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 90704beb7bb03b548a09a57bf84fd76a, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 136558} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab.meta deleted file mode 100644 index 571f8d10b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryFive/FooSubContainer.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ecdaaf4205a5c4046ae08fbe25f94e42 -timeCreated: 1460650324 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne.meta deleted file mode 100644 index c8bd647dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 389d9157488f37f4ba6725f764f5deb7 -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset deleted file mode 100644 index 19ae038e6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cd7da28b2b2c71a419e9eb3722a9b7b6, type: 3} - m_Name: Bar - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset.meta deleted file mode 100644 index c625c71d9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Bar.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3195625194709c24a87cef5b84dd5971 -timeCreated: 1487541016 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab deleted file mode 100644 index 47697530e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &149814 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 416932} - - component: {fileID: 11419076} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &416932 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 149814} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11419076 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 149814} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 01d5660ddd4f5d440a15f6ae003cd42a, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 149814} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab.meta deleted file mode 100644 index 1280e469f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 95afbeacc839e0a4da5a6e116f07052e -timeCreated: 1459037082 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab deleted file mode 100644 index 5c65361bb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab +++ /dev/null @@ -1,71 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &149814 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 416932} - - component: {fileID: 11494492} - - component: {fileID: 11487118} - m_Layer: 0 - m_Name: FooSubContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &416932 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 149814} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11487118 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 149814} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a4c5304e14d4ebf40a4d40c6c382964d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11494492 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 149814} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 11487118} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 149814} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab.meta deleted file mode 100644 index ec8503622..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestBindFactoryOne/FooSubContainer.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0465df6236950a740af6ead536450d8e -timeCreated: 1460646788 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne.meta deleted file mode 100644 index 75c3caa3d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 058e96bc79a94844d8207b5a9c078dcc -folderAsset: yes -timeCreated: 1459214356 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab deleted file mode 100644 index bd95437a6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab +++ /dev/null @@ -1,101 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &177174 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 452862} - - 33: {fileID: 3315238} - - 65: {fileID: 6519334} - - 23: {fileID: 2390420} - - 114: {fileID: 11443106} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &452862 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &2390420 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 1 - m_ReflectionProbeUsage: 1 - m_ProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &3315238 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &6519334 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!114 &11443106 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5424aef515984fd4da14e474c7ab463c, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 177174} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab.meta deleted file mode 100644 index 4c5937842..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryOne/Cube.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3aca5d856f350b24eb622adb19746ebc -timeCreated: 1459214356 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero.meta deleted file mode 100644 index 87ebe140a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 92fdd4ba79b70d64d85ce208f81fb876 -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab deleted file mode 100644 index 8afc9947e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab +++ /dev/null @@ -1,89 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &177174 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 452862} - - 33: {fileID: 3315238} - - 65: {fileID: 6519334} - - 23: {fileID: 2390420} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &452862 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &2390420 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 1 - m_ReflectionProbeUsage: 1 - m_ProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &3315238 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &6519334 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 177174} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 177174} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab.meta deleted file mode 100644 index 9349e1761..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestGameObjectFactoryZero/Cube.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4fd68bd3734238e43bd8b8bc25db3bcf -timeCreated: 1459095429 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory.meta deleted file mode 100644 index 378e6c2d1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 85b6419d8f7691d4ab703d71ae1baecd -folderAsset: yes -timeCreated: 1476628483 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab deleted file mode 100644 index c30ca6c63..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab +++ /dev/null @@ -1,54 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &130070 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 462884} - - component: {fileID: 11421454} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &462884 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 130070} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -37.141693, y: 4.1177154, z: 8.340115} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11421454 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 130070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 724cacdf997720a47b671d0a4dc6bb0f, type: 3} - m_Name: - m_EditorClassIdentifier: - WasInitialized: 0 ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 130070} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab.meta deleted file mode 100644 index d8854f9e9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 54246954ae9afed40ad0e818f0d1702c -timeCreated: 1461166035 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab deleted file mode 100644 index 4a17e544d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &130070 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 462884} - - component: {fileID: 114582292039092860} - m_Layer: 0 - m_Name: Foo2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &462884 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 130070} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -37.141693, y: 4.1177154, z: 8.340115} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 130070} - m_IsPrefabParent: 1 ---- !u!114 &114582292039092860 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 130070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8aaa72f0222c9a84b9ff566b4609e4a5, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab.meta deleted file mode 100644 index 148693866..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/Resources/TestPrefabFactory/Foo2.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 09df71f19c7dd5648a2e32abb6769e49 -timeCreated: 1461166035 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory.meta deleted file mode 100644 index 65472cf8a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 7d625b6f595523d4a93a7e3a44843f00 -folderAsset: yes -timeCreated: 1476627237 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs deleted file mode 100644 index 6130171ed..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs +++ /dev/null @@ -1,13 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.BindFactory -{ - //[CreateAssetMenu(fileName = "Bar", menuName = "Installers/Bar")] - public class Bar : ScriptableObject - { - public class Factory : PlaceholderFactory - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs.meta deleted file mode 100644 index f0cd8406d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f65e28d0debda63429efbca8a5e6ee69 -timeCreated: 1487537570 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs deleted file mode 100644 index 3cb337da8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs +++ /dev/null @@ -1,19 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.BindFactory -{ - public interface IFoo - { - } - - public class IFooFactory : PlaceholderFactory - { - } - - public class Foo : MonoBehaviour, IFoo - { - public class Factory : PlaceholderFactory - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs.meta deleted file mode 100644 index 47b74fb30..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactory/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d2d5f4f0d25441b4b8dbdcf3e25815a4 -timeCreated: 1459026782 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive.meta deleted file mode 100644 index 14d9955cc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 09f01ae6ec653de48ae46c0c0f554d0e -folderAsset: yes -timeCreated: 1476627243 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs deleted file mode 100644 index 52aa433c3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.BindFactoryFive -{ - public interface IFoo - { - string Value - { - get; - } - } - - public class IFooFactory : PlaceholderFactory - { - } - - public class Foo : MonoBehaviour, IFoo - { - [Inject] - public void Init(double p1, int p2, float p3, string p4, char p5) - { - Value = p4; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs.meta deleted file mode 100644 index 61897db82..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ee5b82f7221fdcb499856642f6436061 -timeCreated: 1460650180 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs deleted file mode 100644 index 5314cb865..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace Zenject.Tests.Factories.BindFactoryFive -{ - public class FooInstaller : MonoInstaller - { - double _param1; - int _param2; - float _param3; - string _param4; - char _param5; - - [Inject] - public void Init(double p1, int p2, float p3, string p4, char p5) - { - _param1 = p1; - _param2 = p2; - _param3 = p3; - _param4 = p4; - _param5 = p5; - } - - public override void InstallBindings() - { - Container.BindInstance(_param1).WhenInjectedInto(); - Container.BindInstance(_param2).WhenInjectedInto(); - Container.BindInstance(_param3).WhenInjectedInto(); - Container.BindInstance(_param4).WhenInjectedInto(); - Container.BindInstance(_param5).WhenInjectedInto(); - - Container.Bind().FromNewComponentOnNewGameObject().AsTransient(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs.meta deleted file mode 100644 index c37f10e00..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryFive/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 90704beb7bb03b548a09a57bf84fd76a -timeCreated: 1460650180 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne.meta deleted file mode 100644 index 5ec7b4596..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 10c2d328b7a4e3b469a097e149ae2c90 -folderAsset: yes -timeCreated: 1476627250 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs deleted file mode 100644 index 805fc1d8f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.BindFactoryOne -{ - //[CreateAssetMenu(fileName = "Bar", menuName = "Installers/Bar")] - public class Bar : ScriptableObject - { - [Inject] - public void Init(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs.meta deleted file mode 100644 index f5fd74580..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Bar.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: cd7da28b2b2c71a419e9eb3722a9b7b6 -timeCreated: 1487540990 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs deleted file mode 100644 index 9e5c18b99..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.Factories.BindFactoryOne -{ - public interface IFoo - { - string Value - { - get; - } - } - - public class IFooFactory : PlaceholderFactory - { - } - - public class Foo : MonoBehaviour, IFoo - { - [Inject] - public void Init(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs.meta deleted file mode 100644 index 881ce71e5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 01d5660ddd4f5d440a15f6ae003cd42a -timeCreated: 1459036978 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs deleted file mode 100644 index 37c5e77c6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Zenject.Tests.Factories.BindFactoryOne -{ - public class FooInstaller : MonoInstaller - { - string _param1; - - [Inject] - public void Init(string param1) - { - _param1 = param1; - } - - public override void InstallBindings() - { - Container.BindInstance(_param1).WhenInjectedInto(); - Container.Bind().FromNewComponentOnNewGameObject().AsTransient(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs.meta deleted file mode 100644 index ff1bb1d0f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Factories/TestBindFactoryOne/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a4c5304e14d4ebf40a4d40c6c382964d -timeCreated: 1460646778 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers.meta deleted file mode 100644 index 386270c3f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9e689164905f0434c850b66d3b3ea3e8 -folderAsset: yes -timeCreated: 1476628768 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor.meta deleted file mode 100644 index 699641456..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 20f3fb0009219e14bb3150500dd7de2d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources.meta deleted file mode 100644 index 55d6b800a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: fe8cd8c09f3e3244a97597a2e0da5c35 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers.meta deleted file mode 100644 index a32006a7b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: adb9300af08dd344e9086d107c5ab2be -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller.meta deleted file mode 100644 index 5662f8d5f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1b64e8d058c69794798f82e8da6d6494 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab deleted file mode 100644 index e309a9ec2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab +++ /dev/null @@ -1,89 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &530849983711821576 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8371906264977464247} - - component: {fileID: 7957302293139370064} - - component: {fileID: 7285868925842814068} - - component: {fileID: 4113772481334099545} - - component: {fileID: 1807902050855190520} - m_Layer: 0 - m_Name: TestCompositeMonoBarInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &8371906264977464247 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530849983711821576} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &7957302293139370064 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530849983711821576} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 1807902050855190520} - - {fileID: 4113772481334099545} - - {fileID: 7285868925842814068} ---- !u!114 &7285868925842814068 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530849983711821576} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &4113772481334099545 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530849983711821576} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0350c00b58985d242b8c053dc17e8da4, type: 3} - m_Name: - m_EditorClassIdentifier: - _value: composite mono installer blurg ---- !u!114 &1807902050855190520 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 530849983711821576} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab.meta deleted file mode 100644 index 852f9ed32..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5968b6740902bcc479b37456cfde9e49 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab deleted file mode 100644 index 02ee7dba4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab +++ /dev/null @@ -1,195 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &4122112894231250154 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5352429807953338453} - - component: {fileID: 5766681956475800498} - - component: {fileID: 6590386688297979798} - - component: {fileID: 2846186725157389338} - m_Layer: 0 - m_Name: TestCompositeMonoDeepBarInstaller1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5352429807953338453 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4122112894231250154} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1275479454650139415} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &5766681956475800498 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4122112894231250154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 2846186725157389338} - - {fileID: 2870772379439334798} - - {fileID: 6590386688297979798} ---- !u!114 &6590386688297979798 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4122112894231250154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &2846186725157389338 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4122112894231250154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &6898949333727657722 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1275479454650139415} - - component: {fileID: 2870772379439334798} - m_Layer: 0 - m_Name: TestCompositeMonoDeepBarInstaller2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1275479454650139415 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6898949333727657722} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 7965930621424026935} - m_Father: {fileID: 5352429807953338453} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2870772379439334798 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6898949333727657722} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 8416193694528614096} ---- !u!1001 &1919192966434102912 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 1275479454650139415} - m_Modifications: - - target: {fileID: 530849983711821576, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_Name - value: TestCompositeMonoBarInstaller - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_RootOrder - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} ---- !u!4 &7965930621424026935 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 8371906264977464247, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - m_PrefabInstance: {fileID: 1919192966434102912} - m_PrefabAsset: {fileID: 0} ---- !u!114 &8416193694528614096 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 7957302293139370064, guid: 5968b6740902bcc479b37456cfde9e49, type: 3} - m_PrefabInstance: {fileID: 1919192966434102912} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab.meta deleted file mode 100644 index bab86e65f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8de81e1287a24a547b96105aee3ccc19 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller.meta deleted file mode 100644 index 20d57ad36..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: db84dfbf40688f44784cb9a2d2660e96 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab deleted file mode 100644 index 5892ea31b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab +++ /dev/null @@ -1,47 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &8574059824363428843 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5729512705001935663} - - component: {fileID: 8230092569781062200} - m_Layer: 0 - m_Name: CircularReferenceCompositeMonoInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5729512705001935663 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8574059824363428843} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &8230092569781062200 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8574059824363428843} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 8230092569781062200} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab.meta deleted file mode 100644 index 5a1b43c48..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e2eef29f095ec944fb4c1425de0648a6 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller.meta deleted file mode 100644 index b2c4bda32..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 600f720de00a6ab4e9c1e06082d2cc08 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab deleted file mode 100644 index 0db6f4c7d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab +++ /dev/null @@ -1,45 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &3650070461660980481 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4743608609663975870} - - component: {fileID: 2536218356271440038} - m_Layer: 0 - m_Name: FooInjecteeInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4743608609663975870 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2536218356271440038 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09a9e5c77bfda1e4eac6da029a1ecd2c, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab.meta deleted file mode 100644 index 9ad0b734b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 112063f4de80dff408355790d15630d9 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab deleted file mode 100644 index df78b02e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab +++ /dev/null @@ -1,88 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &3650070461660980481 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4743608609663975870} - - component: {fileID: 6598994767586126425} - - component: {fileID: 5829568516985073277} - - component: {fileID: 2536218356271440038} - - component: {fileID: 3237146777080866289} - m_Layer: 0 - m_Name: TestCompositeMonoFooInjecteeInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4743608609663975870 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6598994767586126425 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 3237146777080866289} - - {fileID: 2536218356271440038} - - {fileID: 5829568516985073277} ---- !u!114 &5829568516985073277 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &2536218356271440038 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09a9e5c77bfda1e4eac6da029a1ecd2c, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &3237146777080866289 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab.meta deleted file mode 100644 index 514333061..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: fd7419da4a5fd4840bd91ba16c293f90 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller.meta deleted file mode 100644 index 771140ff6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1a6310f17fd70b34f9e89be5ed389130 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab deleted file mode 100644 index 7bad3d86c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab +++ /dev/null @@ -1,195 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &2438238668274641926 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5955258980947380409} - - component: {fileID: 5252794065643283294} - - component: {fileID: 4870417831006660474} - - component: {fileID: 4583922593004252406} - m_Layer: 0 - m_Name: TestCompositeMonoDeepFooInstaller1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5955258980947380409 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2438238668274641926} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 671488512195603451} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &5252794065643283294 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2438238668274641926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 4583922593004252406} - - {fileID: 4554822249289067874} - - {fileID: 4870417831006660474} ---- !u!114 &4870417831006660474 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2438238668274641926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &4583922593004252406 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2438238668274641926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &5142845985643730454 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 671488512195603451} - - component: {fileID: 4554822249289067874} - m_Layer: 0 - m_Name: TestCompositeMonoDeepFooInstaller2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &671488512195603451 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5142845985643730454} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 8909035239164609540} - m_Father: {fileID: 5955258980947380409} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &4554822249289067874 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5142845985643730454} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 7053684283872407523} ---- !u!1001 &4213098470960629178 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 671488512195603451} - m_Modifications: - - target: {fileID: 3650070461660980481, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_Name - value: TestCompositeMonoFooInstaller - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_RootOrder - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} ---- !u!4 &8909035239164609540 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 4743608609663975870, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - m_PrefabInstance: {fileID: 4213098470960629178} - m_PrefabAsset: {fileID: 0} ---- !u!114 &7053684283872407523 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 6598994767586126425, guid: b3b5824654eb66f4c8f36d662f9b0462, type: 3} - m_PrefabInstance: {fileID: 4213098470960629178} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab.meta deleted file mode 100644 index e7e4318a3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 224868fc0e0ee5b4e88c739f0e31c624 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab deleted file mode 100644 index 11fc94f47..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab +++ /dev/null @@ -1,88 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &3650070461660980481 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4743608609663975870} - - component: {fileID: 6598994767586126425} - - component: {fileID: 5829568516985073277} - - component: {fileID: 8172172687114874004} - - component: {fileID: 3237146777080866289} - m_Layer: 0 - m_Name: TestMonoFooInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4743608609663975870 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6598994767586126425 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 3237146777080866289} - - {fileID: 8172172687114874004} - - {fileID: 5829568516985073277} ---- !u!114 &5829568516985073277 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &8172172687114874004 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e0e847dba1e593443b5431a12deae82f, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &3237146777080866289 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3650070461660980481} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab.meta deleted file mode 100644 index 77817836b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b3b5824654eb66f4c8f36d662f9b0462 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller.meta deleted file mode 100644 index e79879c22..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a920ac48e12780e448bda0cec639e144 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab deleted file mode 100644 index ff7826431..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab +++ /dev/null @@ -1,195 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &3177410217176948242 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6875699865082673837} - - component: {fileID: 4984249742949372234} - - component: {fileID: 5645547812461974894} - - component: {fileID: 3626362707399220962} - m_Layer: 0 - m_Name: TestCompositeMonoDeepQuxInstaller1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &6875699865082673837 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3177410217176948242} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 333173850248993263} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &4984249742949372234 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3177410217176948242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 3626362707399220962} - - {fileID: 3673752368266960758} - - {fileID: 5645547812461974894} ---- !u!114 &5645547812461974894 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3177410217176948242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &3626362707399220962 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3177410217176948242} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &5373145965306864642 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 333173850248993263} - - component: {fileID: 3673752368266960758} - m_Layer: 0 - m_Name: TestCompositeMonoDeepQuxInstaller2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &333173850248993263 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5373145965306864642} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 3418028474788693830} - m_Father: {fileID: 6875699865082673837} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &3673752368266960758 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5373145965306864642} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 3832491725244542113} ---- !u!1001 &3414522556572687536 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 333173850248993263} - m_Modifications: - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_RootOrder - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8322262602894999369, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - propertyPath: m_Name - value: TestCompositeMonoQuxInstaller - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} ---- !u!4 &3418028474788693830 stripped -Transform: - m_CorrespondingSourceObject: {fileID: 3822887339400182, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - m_PrefabInstance: {fileID: 3414522556572687536} - m_PrefabAsset: {fileID: 0} ---- !u!114 &3832491725244542113 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 1895290623129415697, guid: 85f4d76b6bba6b045a718f779bad6d44, type: 3} - m_PrefabInstance: {fileID: 3414522556572687536} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab.meta deleted file mode 100644 index 13d82856b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 49ed10a0b9b33f844966c21c659ae85c -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab deleted file mode 100644 index d00abc1b9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab +++ /dev/null @@ -1,91 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &8322262602894999369 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3822887339400182} - - component: {fileID: 1895290623129415697} - - component: {fileID: 1242979953206768693} - - component: {fileID: 2049372452700297192} - - component: {fileID: 7869369471462588345} - m_Layer: 0 - m_Name: TestCompositeMonoQuxInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &3822887339400182 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8322262602894999369} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1895290623129415697 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8322262602894999369} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5c0b026e5523f9c44acfea241a4f5ad6, type: 3} - m_Name: - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 7869369471462588345} - - {fileID: 2049372452700297192} - - {fileID: 1242979953206768693} ---- !u!114 &1242979953206768693 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8322262602894999369} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &2049372452700297192 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8322262602894999369} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: eda772dd73667c74691788be8008e132, type: 3} - m_Name: - m_EditorClassIdentifier: - _p1: composite mono installer string - _p2: 23.45 - _p3: 7890 ---- !u!114 &7869369471462588345 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8322262602894999369} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 500e620ab751c904ea1775ee7cad1fb0, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab.meta deleted file mode 100644 index bd9ad0dba..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 85f4d76b6bba6b045a718f779bad6d44 -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers.meta deleted file mode 100644 index f352f0671..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c2fe381ea49a520409ffc5edb6555610 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller.meta deleted file mode 100644 index 3c2d40aa8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ae7a51caf097d7743ba6c203f8838002 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset deleted file mode 100644 index c7583375e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset +++ /dev/null @@ -1,15 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c0ad526d423bf0c459dd2ce6d7682857, type: 3} - m_Name: BarInstaller - m_EditorClassIdentifier: - _value: composite scriptable object installer blurg diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset.meta deleted file mode 100644 index fcdb2863b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/BarInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8c9bac086cbacc34b85fd8128cfd774e -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset deleted file mode 100644 index 17c4e6742..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectBarInstaller - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: 8c9bac086cbacc34b85fd8128cfd774e, type: 2} - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset.meta deleted file mode 100644 index 2093f86cd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c927201ff35ff7141887384d2a3ce5bd -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset deleted file mode 100644 index 30f42e924..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepBarInstaller1 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: 738fef19eb637af41bf3f74e9ea1e3b6, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset.meta deleted file mode 100644 index 8d1d77c17..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7cf394016466c3e4880f48c37fe0f264 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset deleted file mode 100644 index 792349be4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepBarInstaller2 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: c927201ff35ff7141887384d2a3ce5bd, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset.meta deleted file mode 100644 index b68b3649c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller2.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 738fef19eb637af41bf3f74e9ea1e3b6 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller.meta deleted file mode 100644 index f721e9039..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2ca2d77b8532f5346b2e4a6b54a47dd4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset deleted file mode 100644 index aa4479461..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: CircularReferenceCompositeScriptableObjectInstaller - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset.meta deleted file mode 100644 index e8d769db0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 93ebcadbc57bb1b46affc56c4267dde1 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller.meta deleted file mode 100644 index 00834840f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1f79eca630642e34c8a57ad4aca36197 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset deleted file mode 100644 index 38c943603..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset +++ /dev/null @@ -1,14 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2b2b6609b0098f342a88e3d34b8bc454, type: 3} - m_Name: DummyInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset.meta deleted file mode 100644 index 8d71ee129..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/DummyInstaller/DummyInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d2878aad2b9161942a0475b3c1c90664 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller.meta deleted file mode 100644 index c7410b67e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6bffd5af1f4db3a44a5081acec68ec7b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset deleted file mode 100644 index dcfd57230..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset +++ /dev/null @@ -1,14 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f352630d9529504eaef53b31c67d337, type: 3} - m_Name: FooInjecteeInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset.meta deleted file mode 100644 index 06d084f7c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a09b85e6fdb4c1a4896c31c5c6ab5078 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset deleted file mode 100644 index 01da88d8e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeSOFooInjecteeInstaller - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: a09b85e6fdb4c1a4896c31c5c6ab5078, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset.meta deleted file mode 100644 index 00679d719..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f4200ce2451a39244ad54f74b3f4ad26 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller.meta deleted file mode 100644 index ea4e2c5ed..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c693624a41aa3394b8d573c8bd4f14a0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset deleted file mode 100644 index ae04bef83..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset +++ /dev/null @@ -1,14 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a8a885e9ea23ad443acf2b7bfa4a9408, type: 3} - m_Name: FooInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset.meta deleted file mode 100644 index bcfa7463c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/FooInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 92ba30930b52d1a48b533ec7df8f43a2 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset deleted file mode 100644 index 9b8016aa8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepFooInstaller1 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: b302add06eb2b9a47a377f9b8a9a63ea, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset.meta deleted file mode 100644 index b2809b867..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d45241506eb8e774b86dfd7526e91efb -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset deleted file mode 100644 index b6e7f1c7b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepFooInstaller2 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: 013265b7e7996f947a49e56bed8a5176, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset.meta deleted file mode 100644 index 5e37b6fdf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b302add06eb2b9a47a377f9b8a9a63ea -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset deleted file mode 100644 index faae3feb2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectFooInstaller - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: 92ba30930b52d1a48b533ec7df8f43a2, type: 2} - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset.meta deleted file mode 100644 index fb6e79888..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 013265b7e7996f947a49e56bed8a5176 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller.meta deleted file mode 100644 index b5200ee6d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1a99fe69e1eb32145b1bf896b3e93ece -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset deleted file mode 100644 index 9b1fba269..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 358095ed8e4979f47b8cd16a57965a8c, type: 3} - m_Name: QuxInstaller - m_EditorClassIdentifier: - _p1: composite scriptable object installer string - _p2: 1.234 - _p3: 5678 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset.meta deleted file mode 100644 index 8fd560c68..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/QuxInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3d949651156ba64488ea7683d3ac4d8f -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset deleted file mode 100644 index afcbcd5a8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepQuxInstaller1 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: 6631ed8d93e21bb49b0d733ca3d8f731, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset.meta deleted file mode 100644 index d3b2e62a4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 10734879f59074a46995bcd9a5cc3fee -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset deleted file mode 100644 index 1c7f33d28..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectDeepQuxInstaller2 - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: 84687a7090e643a42aa8dc1f3545eb49, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset.meta deleted file mode 100644 index e56fd8d28..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller2.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6631ed8d93e21bb49b0d733ca3d8f731 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset deleted file mode 100644 index 135d0a230..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2f81b908d05150b4190f0ceb8456e280, type: 3} - m_Name: TestCompositeScriptableObjectQuxInstaller - m_EditorClassIdentifier: - _leafInstallers: - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} - - {fileID: 11400000, guid: 3d949651156ba64488ea7683d3ac4d8f, type: 2} - - {fileID: 11400000, guid: d2878aad2b9161942a0475b3c1c90664, type: 2} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset.meta deleted file mode 100644 index f53e58d87..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Editor/Resources/TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 84687a7090e643a42aa8dc1f3545eb49 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources.meta deleted file mode 100644 index 8d39f65ba..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9b8b1b8dc74b17447889379c8396f200 -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers.meta deleted file mode 100644 index 44352c552..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: daa5bbd0063defd428a9bc25404dbe40 -folderAsset: yes -timeCreated: 1465571710 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab deleted file mode 100644 index af9fa388c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &176446 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 429316} - - component: {fileID: 11439706} - m_Layer: 0 - m_Name: BarInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &429316 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 176446} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11439706 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 176446} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7388d1be3de18af4fa1b06990de49068, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 176446} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab.meta deleted file mode 100644 index 17e351ddb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/BarInstaller.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: facc2b017ff13b24d83540ec8374c3d3 -timeCreated: 1465573058 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab deleted file mode 100644 index 784c93cd4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &199496 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 488392} - - component: {fileID: 11463096} - m_Layer: 0 - m_Name: FooInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &488392 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199496} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11463096 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199496} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 97cba5011d2370f49b6298a910bff37f, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 199496} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab.meta deleted file mode 100644 index 8317c575d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/FooInstaller.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7aa5ef5454a791d458b0bda3c45da9e7 -timeCreated: 1465571726 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab deleted file mode 100644 index bdc00c76d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &188740 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 470298} - - component: {fileID: 11416328} - m_Layer: 0 - m_Name: QuxInstaller - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &470298 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 188740} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11416328 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 188740} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8c1af520fec04194fb32a2f05ccc565c, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 188740} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab.meta deleted file mode 100644 index 8d32044aa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestMonoInstallers/QuxInstaller.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a2dee8dc5b292034aa05c835d3dfa23a -timeCreated: 1465573559 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers.meta deleted file mode 100644 index 95bd92ede..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f956363274a9d0949bc3d243d634cf86 -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset deleted file mode 100644 index 0debedff6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8ad54a4699841ca4b83c660b1e5b1205, type: 3} - m_Name: BarInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset.meta deleted file mode 100644 index 5f09236b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/BarInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2de8710dcfa13404897fe61a0772cb01 -timeCreated: 1465580450 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset deleted file mode 100644 index 89e7982eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 86b0c5429fd52904bb98fbccd1e6f2b6, type: 3} - m_Name: FooInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset.meta deleted file mode 100644 index 7f1662606..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/FooInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7654dc2852826a84181eb3ac6408966b -timeCreated: 1465580457 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset deleted file mode 100644 index 34a5168c8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2d651675af1c6f14a8e56772e1f69e25, type: 3} - m_Name: QuxInstaller - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset.meta deleted file mode 100644 index 78f35b076..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/Resources/TestScriptableObjectInstallers/QuxInstaller.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: eeeedc864b1617940987ed5913b1a95e -timeCreated: 1465580461 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller.meta deleted file mode 100644 index 42e7e9b8e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 37e42a02fc04a3142ac0ad3d90758317 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs deleted file mode 100644 index 3d33cb706..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class BarInstaller : MonoInstaller - { - [SerializeField] string _value; - - public override void InstallBindings() - { - Container.BindInstance(_value); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs.meta deleted file mode 100644 index a4aca02e1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/BarInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0350c00b58985d242b8c053dc17e8da4 -timeCreated: 1465573014 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs deleted file mode 100644 index f73298414..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; -using Zenject; - -public class DummyInstaller : MonoInstaller -{ - public override void InstallBindings() - { - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs.meta deleted file mode 100644 index 129070fa2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/DummyInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 500e620ab751c904ea1775ee7cad1fb0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs deleted file mode 100644 index a8793886c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class Foo - { - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs.meta deleted file mode 100644 index cbc17cd22..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/Foo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a2c6006e4a5ea09458a9b03b19d9c647 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs deleted file mode 100644 index a086f4c01..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class FooInjectee - { - public FooInjectee(Foo foo) - { - Foo = foo; - } - - public Foo Foo { get; } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs.meta deleted file mode 100644 index dc111b600..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjectee.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6016290840dd2f941ad3854d67eabb0c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs deleted file mode 100644 index 0c66b3b70..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class FooInjecteeInstaller : MonoInstaller - { - public override void InstallBindings() - { - Container - .Bind() - .AsSingle() - .NonLazy(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs.meta deleted file mode 100644 index c17cf2916..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInjecteeInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 09a9e5c77bfda1e4eac6da029a1ecd2c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs deleted file mode 100644 index 5e6f2c5ef..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs +++ /dev/null @@ -1,13 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class FooInstaller : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs.meta deleted file mode 100644 index f0cdfc109..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/FooInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e0e847dba1e593443b5431a12deae82f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs deleted file mode 100644 index 58cf1198f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs +++ /dev/null @@ -1,19 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeMonoInstallers -{ - public class QuxInstaller : MonoInstaller - { - [SerializeField] string _p1; - [SerializeField] float _p2; - [SerializeField] int _p3; - - public override void InstallBindings() - { - Container.BindInstance(_p1); - Container.BindInstance(_p2); - Container.BindInstance(_p3); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs.meta deleted file mode 100644 index b76f3b00a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeMonoInstaller/QuxInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: eda772dd73667c74691788be8008e132 -timeCreated: 1465573495 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller.meta deleted file mode 100644 index de52bb1b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b61db7e53e2f3554aaa845ab31cb8981 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs deleted file mode 100644 index 2aecabf90..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - // [CreateAssetMenu(fileName = "BarInstaller", menuName = "Installers/BarInstaller")] - public class BarInstaller : ScriptableObjectInstaller - { - [SerializeField] string _value; - - public override void InstallBindings() - { - Container.BindInstance(_value); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs.meta deleted file mode 100644 index 7c7aad149..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/BarInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c0ad526d423bf0c459dd2ce6d7682857 -timeCreated: 1465573014 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs deleted file mode 100644 index 7133c4401..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs +++ /dev/null @@ -1,13 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - // [CreateAssetMenu(fileName = "DummyInstaller", menuName = "Installers/DummyInstaller")] - public class DummyInstaller : ScriptableObjectInstaller - { - public override void InstallBindings() - { - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs.meta deleted file mode 100644 index 4b57b9297..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/DummyInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2b2b6609b0098f342a88e3d34b8bc454 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs deleted file mode 100644 index f9bb35767..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs +++ /dev/null @@ -1,9 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - public class Foo - { - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs.meta deleted file mode 100644 index fc326a42d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/Foo.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d39134e01d87f5247ac0b7aa5f83eb8e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs deleted file mode 100644 index 8343cc09d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs +++ /dev/null @@ -1,15 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - public class FooInjectee - { - public FooInjectee(Foo foo) - { - Foo = foo; - } - - public Foo Foo { get; } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs.meta deleted file mode 100644 index 5362d5bd9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjectee.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 065578d47085f584fbb8bc72cacadf0c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs deleted file mode 100644 index 88bf6e80e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs +++ /dev/null @@ -1,17 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - // [CreateAssetMenu(fileName = "FooInjecteeInstaller", menuName = "Installers/FooInjecteeInstaller")] - public class FooInjecteeInstaller : ScriptableObjectInstaller - { - public override void InstallBindings() - { - Container - .Bind() - .AsSingle() - .NonLazy(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs.meta deleted file mode 100644 index a7d70b66a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInjecteeInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2f352630d9529504eaef53b31c67d337 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs deleted file mode 100644 index 9a2d129ac..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - // [CreateAssetMenu(fileName = "FooInstaller", menuName = "Installers/FooInstaller")] - public class FooInstaller : ScriptableObjectInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs.meta deleted file mode 100644 index 286e2ee6d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/FooInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a8a885e9ea23ad443acf2b7bfa4a9408 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs deleted file mode 100644 index 4792ca580..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs +++ /dev/null @@ -1,20 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.Installers.CompositeScriptableObjectInstallers -{ - // [CreateAssetMenu(fileName = "QuxInstaller", menuName = "Installers/QuxInstaller")] - public class QuxInstaller : ScriptableObjectInstaller - { - [SerializeField] string _p1; - [SerializeField] float _p2; - [SerializeField] int _p3; - - public override void InstallBindings() - { - Container.BindInstance(_p1); - Container.BindInstance(_p2); - Container.BindInstance(_p3); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs.meta deleted file mode 100644 index 4e98b2f81..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestCompositeScriptableObjectInstaller/QuxInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 358095ed8e4979f47b8cd16a57965a8c -timeCreated: 1465573495 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers.meta deleted file mode 100644 index 06dcad70e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f643275d35e53454ebe6af5fe67e3736 -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs deleted file mode 100644 index 4a928f927..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace Zenject.Tests.Installers.Installers -{ - public class BarInstaller : Installer - { - string _value; - - [Inject] - public void Construct(string value) - { - _value = value; - } - - public override void InstallBindings() - { - Container.BindInstance(_value); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs.meta deleted file mode 100644 index 3a85ba5b9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/BarInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e3fd51e14e913e243bb9c3afbc514fd8 -timeCreated: 1465658298 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs deleted file mode 100644 index ec9810ee6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Zenject.Tests.Installers.Installers -{ - public class Foo - { - } - - public class FooInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs.meta deleted file mode 100644 index 3b98b925a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 19d8f9dc0fef466468a6a0ab8b59a8ac -timeCreated: 1465658298 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs deleted file mode 100644 index 64c431aef..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace Zenject.Tests.Installers.Installers -{ - public class QuxInstaller : Installer - { - string _p1; - - [Inject] - public void Construct(string p1, float p2, int p3) - { - _p1 = p1; - } - - public override void InstallBindings() - { - Container.BindInstance(_p1); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs.meta deleted file mode 100644 index e3b2cd799..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestInstallers/QuxInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 06dbf735e0bda0047af56033fa90bf9c -timeCreated: 1465658298 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers.meta deleted file mode 100644 index 030934655..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 57c8dc7ac1cc0e24c9d010ed050630a6 -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs deleted file mode 100644 index 922325561..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace Zenject.Tests.Installers.MonoInstallers -{ - public class BarInstaller : MonoInstaller - { - string _value; - - [Inject] - public void Construct(string value) - { - _value = value; - } - - public override void InstallBindings() - { - Container.BindInstance(_value); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs.meta deleted file mode 100644 index 8f074d920..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/BarInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7388d1be3de18af4fa1b06990de49068 -timeCreated: 1465573014 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs deleted file mode 100644 index 957783aad..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Zenject.Tests.Installers.MonoInstallers -{ - public class Foo - { - } - - public class FooInstaller : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs.meta deleted file mode 100644 index fc2fe0d19..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 97cba5011d2370f49b6298a910bff37f -timeCreated: 1465571499 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs deleted file mode 100644 index cae18d694..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace Zenject.Tests.Installers.MonoInstallers -{ - public class QuxInstaller : MonoInstaller - { - string _p1; - - [Inject] - public void Construct(string p1, float p2, int p3) - { - _p1 = p1; - } - - public override void InstallBindings() - { - Container.BindInstance(_p1); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs.meta deleted file mode 100644 index 547c14490..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestMonoInstallers/QuxInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8c1af520fec04194fb32a2f05ccc565c -timeCreated: 1465573495 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers.meta deleted file mode 100644 index 487dc4c88..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 964fe850ecbb7ab4588f6d6fabfc401d -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs deleted file mode 100644 index f969d7b02..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Zenject.Tests.Installers.ScriptableObjectInstallers -{ - //[CreateAssetMenu(fileName = "BarInstaller", menuName = "Installers/BarInstaller")] - public class BarInstaller : ScriptableObjectInstaller - { - string _value; - - [Inject] - public void Construct(string value) - { - _value = value; - } - - public override void InstallBindings() - { - Container.BindInstance(_value); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs.meta deleted file mode 100644 index 60f5726e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/BarInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8ad54a4699841ca4b83c660b1e5b1205 -timeCreated: 1465573014 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs deleted file mode 100644 index c8e13a447..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Zenject.Tests.Installers.ScriptableObjectInstallers -{ - public class Foo - { - } - - //[CreateAssetMenu(fileName = "FooInstaller", menuName = "Installers/FooInstaller")] - public class FooInstaller : ScriptableObjectInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs.meta deleted file mode 100644 index 53a7d4567..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/FooInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 86b0c5429fd52904bb98fbccd1e6f2b6 -timeCreated: 1465571499 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs deleted file mode 100644 index c4163bd1c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace Zenject.Tests.Installers.ScriptableObjectInstallers -{ - //[CreateAssetMenu(fileName = "QuxInstaller", menuName = "Installers/QuxInstaller")] - public class QuxInstaller : ScriptableObjectInstaller - { - string _p1; - - [Inject] - public void Construct(string p1, float p2, int p3) - { - _p1 = p1; - } - - public override void InstallBindings() - { - Container.BindInstance(_p1); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs.meta deleted file mode 100644 index 5d468b3ef..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Installers/TestScriptableObjectInstallers/QuxInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2d651675af1c6f14a8e56772e1f69e25 -timeCreated: 1465573495 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc.meta deleted file mode 100644 index de1205e37..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3687940490df8ba45b0c163206328042 -folderAsset: yes -timeCreated: 1528023583 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject.meta deleted file mode 100644 index 627787f54..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 7c8d12973b1b4714fb0218beaee58409 -folderAsset: yes -timeCreated: 1527865953 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller deleted file mode 100644 index a2bcdbb54..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller +++ /dev/null @@ -1,81 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!91 &9100000 -AnimatorController: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: AnimatorController - serializedVersion: 5 - m_AnimatorParameters: [] - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: 1107775293362996108} - m_Mask: {fileID: 0} - m_Motions: [] - m_Behaviours: [] - m_BlendingMode: 0 - m_SyncedLayerIndex: -1 - m_DefaultWeight: 0 - m_IKPass: 0 - m_SyncedLayerAffectsTiming: 0 - m_Controller: {fileID: 9100000} ---- !u!114 &114027972404111678 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1f499d32999f20c43916ca767c8a2721, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1102 &1102565375691496896 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: State1 - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: - - {fileID: 114027972404111678} - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 0} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!1107 &1107775293362996108 -AnimatorStateMachine: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_Name: Base Layer - m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: 1102565375691496896} - m_Position: {x: 348, y: 24, z: 0} - m_ChildStateMachines: [] - m_AnyStateTransitions: [] - m_EntryTransitions: [] - m_StateMachineTransitions: {} - m_StateMachineBehaviours: [] - m_AnyStatePosition: {x: 50, y: 20, z: 0} - m_EntryPosition: {x: 50, y: 120, z: 0} - m_ExitPosition: {x: 800, y: 120, z: 0} - m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} - m_DefaultState: {fileID: 1102565375691496896} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller.meta deleted file mode 100644 index 11b814e9e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/AnimatorController.controller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 37a3980aa64320943b24a1d48d62bf9d -timeCreated: 1527866636 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 9100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources.meta deleted file mode 100644 index fbe82034b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: a9fbadf517d44c046b6b93cdfb71a41f -folderAsset: yes -timeCreated: 1527866070 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject.meta deleted file mode 100644 index 65223a0d4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 0ec5521dd89b03d48ad5cddedea81380 -folderAsset: yes -timeCreated: 1527866073 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab deleted file mode 100644 index d9a2c1de6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab +++ /dev/null @@ -1,115 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1744891923508510} - m_IsPrefabParent: 1 ---- !u!1 &1744891923508510 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4016477254024706} - - component: {fileID: 33124270980622608} - - component: {fileID: 65152104502201768} - - component: {fileID: 23703237305529432} - - component: {fileID: 95191441992763118} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4016477254024706 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1744891923508510} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &23703237305529432 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1744891923508510} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 ---- !u!33 &33124270980622608 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1744891923508510} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65152104502201768 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1744891923508510} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!95 &95191441992763118 -Animator: - serializedVersion: 3 - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1744891923508510} - m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: 37a3980aa64320943b24a1d48d62bf9d, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab.meta deleted file mode 100644 index a735a8a1f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/Resources/TestAnimationStateBehaviourInject/Foo.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 2c41fe4d26e657543b500e482087e4ee -timeCreated: 1527866804 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs deleted file mode 100644 index 93249d3a2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.TestAnimationStateBehaviourInject -{ - public class StateBehaviour1 : StateMachineBehaviour - { - public static int OnStateEnterCalls; - - override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) - { - OnStateEnterCalls++; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs.meta deleted file mode 100644 index b08aa6d80..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestAnimationStateBehaviourInject/StateBehaviour1.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1f499d32999f20c43916ca767c8a2721 -timeCreated: 1527866450 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter.meta deleted file mode 100644 index ba10a9589..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 17a88c8f91ce2ee4cb436c053db81b98 -folderAsset: yes -timeCreated: 1528396585 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs deleted file mode 100644 index ef18c7f4a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.AutoInjecter -{ - public class Foo - { - [Inject] - public DiContainer Container; - } - - public class Bar : MonoBehaviour - { - [Inject] - public Foo Foo; - - public bool ConstructCalled; - - [Inject] - public void Construct() - { - ConstructCalled = true; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs.meta deleted file mode 100644 index 44dc4208c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Bar.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: b7e5e0f41dcd72141b54052dcea290f3 -timeCreated: 1528431963 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs deleted file mode 100644 index 3583c7eea..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.AutoInjecter -{ - public class Gorp : MonoBehaviour - { - [Inject] - public DiContainer Container; - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs.meta deleted file mode 100644 index da9f837cd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Gorp.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 48a1702f3f51afd489a487d100ae183b -timeCreated: 1528435127 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs deleted file mode 100644 index 2954d254d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.AutoInjecter -{ - public class Qux : MonoBehaviour - { - [Inject] - public DiContainer Container; - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs.meta deleted file mode 100644 index 637f31883..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Qux.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 85b3fbf1cedc1b347a1f6e63b2948cb8 -timeCreated: 1528431963 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources.meta deleted file mode 100644 index 23de6bc32..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ca7257b7ad185bc43a1ffad049e91037 -folderAsset: yes -timeCreated: 1528434154 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter.meta deleted file mode 100644 index beb4c45eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: d6798705aa48b0b4abf1976ce43fbab0 -folderAsset: yes -timeCreated: 1528434436 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab deleted file mode 100644 index 5a3741561..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab +++ /dev/null @@ -1,67 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1400889182394570} - m_IsPrefabParent: 1 ---- !u!1 &1400889182394570 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4372544586850134} - - component: {fileID: 114305479498660098} - - component: {fileID: 114946954291869638} - m_Layer: 0 - m_Name: Bar - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4372544586850134 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1400889182394570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114305479498660098 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1400889182394570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b7e5e0f41dcd72141b54052dcea290f3, type: 3} - m_Name: - m_EditorClassIdentifier: - ConstructCalled: 0 ---- !u!114 &114946954291869638 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1400889182394570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 717a02054ef2699498e6bd4234fd7995, type: 3} - m_Name: - m_EditorClassIdentifier: - _containerSource: 0 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab.meta deleted file mode 100644 index 92b07278f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/Bar.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 351a07e7d4f94924ca89ac897d494be2 -timeCreated: 1528434628 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab deleted file mode 100644 index 2d3f162ca..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab +++ /dev/null @@ -1,87 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1288707547594894} - m_IsPrefabParent: 1 ---- !u!1 &1288707547594894 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4973986975044318} - - component: {fileID: 114676134859125764} - - component: {fileID: 114264038505501450} - - component: {fileID: 114718598966863028} - m_Layer: 0 - m_Name: GorpContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4973986975044318 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1288707547594894} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114264038505501450 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1288707547594894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: [] - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &114676134859125764 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1288707547594894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 48a1702f3f51afd489a487d100ae183b, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &114718598966863028 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1288707547594894} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 114676134859125764} - _identifier: - _context: {fileID: 0} - _bindType: 0 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab.meta deleted file mode 100644 index b2cf13a78..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/GorpContext.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 008052b7c81e4394bbff32504e537741 -timeCreated: 1528435160 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab deleted file mode 100644 index c294610dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab +++ /dev/null @@ -1,66 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1636156765827668} - m_IsPrefabParent: 1 ---- !u!1 &1636156765827668 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4609637828973820} - - component: {fileID: 114640480660439964} - - component: {fileID: 114116620870560680} - m_Layer: 0 - m_Name: QuxProject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4609637828973820 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114116620870560680 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 717a02054ef2699498e6bd4234fd7995, type: 3} - m_Name: - m_EditorClassIdentifier: - _containerSource: 1 ---- !u!114 &114640480660439964 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 85b3fbf1cedc1b347a1f6e63b2948cb8, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab.meta deleted file mode 100644 index 3bb0d5930..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxProject.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 56ef30ceec3d33941bdecd2ce9069e46 -timeCreated: 1528434557 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab deleted file mode 100644 index df00b8caf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab +++ /dev/null @@ -1,66 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1636156765827668} - m_IsPrefabParent: 1 ---- !u!1 &1636156765827668 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4609637828973820} - - component: {fileID: 114640480660439964} - - component: {fileID: 114116620870560680} - m_Layer: 0 - m_Name: QuxScene - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4609637828973820 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114116620870560680 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 717a02054ef2699498e6bd4234fd7995, type: 3} - m_Name: - m_EditorClassIdentifier: - _containerSource: 0 ---- !u!114 &114640480660439964 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 85b3fbf1cedc1b347a1f6e63b2948cb8, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab.meta deleted file mode 100644 index ac5be1d5b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxScene.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 8b66e8c542fc27e40b65cba974860d22 -timeCreated: 1528434557 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab deleted file mode 100644 index 4eb411731..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab +++ /dev/null @@ -1,66 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1636156765827668} - m_IsPrefabParent: 1 ---- !u!1 &1636156765827668 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4609637828973820} - - component: {fileID: 114640480660439964} - - component: {fileID: 114116620870560680} - m_Layer: 0 - m_Name: QuxSearch - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4609637828973820 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114116620870560680 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 717a02054ef2699498e6bd4234fd7995, type: 3} - m_Name: - m_EditorClassIdentifier: - _containerSource: 2 ---- !u!114 &114640480660439964 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1636156765827668} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 85b3fbf1cedc1b347a1f6e63b2948cb8, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab.meta deleted file mode 100644 index d2ea68018..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Misc/TestZenAutoInjecter/Resources/TestZenAutoInjecter/QuxSearch.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: de81b619565bbf8408b85c2016b9477d -timeCreated: 1528434557 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources.meta deleted file mode 100644 index 73652fbc4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 5f5e7a7cd0f373948b5256b09f1bc999 -folderAsset: yes -timeCreated: 1535267243 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject.meta deleted file mode 100644 index 35b6e2755..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b6836743d3935564ab3dda9c91fd9aa9 -folderAsset: yes -timeCreated: 1459212995 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab deleted file mode 100644 index 6334ed628..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab +++ /dev/null @@ -1,88 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &181248 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 4 - m_Component: - - 4: {fileID: 496296} - - 33: {fileID: 3312568} - - 65: {fileID: 6582216} - - 23: {fileID: 2356458} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496296 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 181248} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 ---- !u!23 &2356458 -MeshRenderer: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 181248} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 1 - m_ReflectionProbeUsage: 1 - m_ProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingOrder: 0 ---- !u!33 &3312568 -MeshFilter: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 181248} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &6582216 -BoxCollider: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 181248} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 181248} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab.meta deleted file mode 100644 index a8269fc19..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestBindGameObject/Cube.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2a507f278d3b56e4ba1fd4f1c9b28d25 -timeCreated: 1459207171 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods.meta deleted file mode 100644 index 76f49df91..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ae273adaa7c1c564487be2bde343fd8f -folderAsset: yes -timeCreated: 1486605497 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab deleted file mode 100644 index 26cb35b7d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab +++ /dev/null @@ -1,102 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1701984141030306} - m_IsPrefabParent: 1 ---- !u!1 &1701984141030306 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4917894310632104} - - component: {fileID: 20112712621694618} - - component: {fileID: 124440584488477408} - - component: {fileID: 92371959540391994} - - component: {fileID: 81115495585236142} - m_Layer: 0 - m_Name: Camera - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4917894310632104 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1701984141030306} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 233.15675, y: 367.62057, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!20 &20112712621694618 -Camera: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1701984141030306} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 0 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!81 &81115495585236142 -AudioListener: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1701984141030306} - m_Enabled: 1 ---- !u!92 &92371959540391994 -Behaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1701984141030306} - m_Enabled: 1 ---- !u!124 &124440584488477408 -Behaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1701984141030306} - m_Enabled: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab.meta deleted file mode 100644 index 7a90f9b8f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Camera.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0e8cb14a39fd6f249a44c7943b3fa7c0 -timeCreated: 1486605718 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab deleted file mode 100644 index 33ae050b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1430110355770212} - m_IsPrefabParent: 1 ---- !u!1 &1430110355770212 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4724547747360102} - - component: {fileID: 114632795606949010} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4724547747360102 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1430110355770212} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114632795606949010 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1430110355770212} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 576295a2c4f9589448e9441994df8491, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab.meta deleted file mode 100644 index da6eb15e8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d193bc261e49cce4eb82e05b80485388 -timeCreated: 1486605527 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset deleted file mode 100644 index eeddf230a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2fb66836df088014081bc2f5740ecea1, type: 3} - m_Name: Foo2 - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset.meta deleted file mode 100644 index 6e8398207..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Foo2.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0b8ab53bbd8332e429a6f0ed1dd3fe16 -timeCreated: 1486678058 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab deleted file mode 100644 index 1bca0d50e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1475120265837186} - m_IsPrefabParent: 1 ---- !u!1 &1475120265837186 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4016417502563626} - - component: {fileID: 114277461040308946} - m_Layer: 0 - m_Name: Gorp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4016417502563626 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1475120265837186} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 233.15675, y: 367.62057, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114277461040308946 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1475120265837186} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 33197ae07a0a36e41bf9fa09aa8d0ce6, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab.meta deleted file mode 100644 index 0ced8bea8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 956d91076f66be1488d99299c06d37b8 -timeCreated: 1486605550 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset deleted file mode 100644 index d00f5b92a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 952b7cab572c9c24cb1e7ca240e67c84, type: 3} - m_Name: Gorp2 - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset.meta deleted file mode 100644 index 44bfba9c2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestDiContainerMethods/Gorp2.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: de8d2dce06221cc4cb9fa957aebc8f15 -timeCreated: 1486678064 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext.meta deleted file mode 100644 index a54321faf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 803685e92a450bb4db649a0a2f48d07f -folderAsset: yes -timeCreated: 1485743427 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab deleted file mode 100644 index 486aa6e6f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab +++ /dev/null @@ -1,125 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &162920 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 406566} - - component: {fileID: 11460120} - - component: {fileID: 114030807952997706} - - component: {fileID: 114675924650911818} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &406566 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4462927905753138} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11460120 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 114030807952997706} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162920} - m_IsPrefabParent: 1 ---- !u!1 &1681158058118644 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4462927905753138} - - component: {fileID: 114633679146737766} - m_Layer: 0 - m_Name: Gorp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4462927905753138 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1681158058118644} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 406566} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114030807952997706 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cdb37bf9eda440448d25e272bf9cd32, type: 3} - m_Name: - m_EditorClassIdentifier: - _foo: {fileID: 114675924650911818} ---- !u!114 &114633679146737766 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1681158058118644} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 972b6ec83b1c10046b0f01f4692b1ddc, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &114675924650911818 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: aface7ec58475d840a11bf38361406a2, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab.meta deleted file mode 100644 index b2c4cc285..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromComponentInHierarchyGameObjectContext/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d4c39a49f38070643b06e8ef923e3648 -timeCreated: 1460509291 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource.meta deleted file mode 100644 index 80c818fe3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 100ccadd1fc02a94da96013a3d7caea9 -folderAsset: yes -timeCreated: 1486616185 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset deleted file mode 100644 index 8f49fc02b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9e40755b32ffa6f4fb5f67e0612fc480, type: 3} - m_Name: Bob - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset.meta deleted file mode 100644 index cd52f6eae..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Bob.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d45f0a8bee35032448f068189a46e207 -timeCreated: 1486670371 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset deleted file mode 100644 index 0ab1870b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset +++ /dev/null @@ -1,13 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 70da936d4db31fa4a9f79f7af7604209, type: 3} - m_Name: Foo - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset.meta deleted file mode 100644 index 3655fae5d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromNewScriptableObjectResource/Foo.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: dff7f713b1f7d8041a8e5a3943ef38b3 -timeCreated: 1486616271 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab.meta deleted file mode 100644 index 4172cc599..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 881211ac3ab7abc43ac341ad60e1e925 -folderAsset: yes -timeCreated: 1476624500 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab deleted file mode 100644 index ca7c29f98..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11420556} - - component: {fileID: 11472394} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11420556 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f39c997bb2d185144bc18d37878d4ab8, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11472394 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 86870631eb8b52e409ad0b86fd44aad7, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab.meta deleted file mode 100644 index a10590a8d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7d3811faab260ce4dab063fd012b42b5 -timeCreated: 1454692704 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab deleted file mode 100644 index 38baa94f8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11420556} - m_Layer: 0 - m_Name: Foo2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11420556 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f39c997bb2d185144bc18d37878d4ab8, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab.meta deleted file mode 100644 index c22a2e760..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Foo2.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d0fc7ecead470be4d8ac1114be3d9d62 -timeCreated: 1458261082 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab deleted file mode 100644 index c68f2e7c1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11470700} - m_Layer: 0 - m_Name: Gorp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11470700 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cc679fbba1bf0a645957d68235c4771d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab.meta deleted file mode 100644 index 9bbd80e8a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Gorp.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1eb53b39cb1d1114782475a86c1e55f1 -timeCreated: 1459002680 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab deleted file mode 100644 index 2e662722c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11470700} - - component: {fileID: 114629866799586768} - m_Layer: 0 - m_Name: GorpAndQux - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11470700 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cc679fbba1bf0a645957d68235c4771d, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 ---- !u!114 &114629866799586768 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 914f813dee2b8b248bce3b21eafa7b6e, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab.meta deleted file mode 100644 index 64bc5cc01..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/GorpAndQux.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d4e9c6984a3aba946bdf015abbc6488f -timeCreated: 1459002680 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab deleted file mode 100644 index 50d601dae..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &124956 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 464534} - - component: {fileID: 11499784} - - component: {fileID: 11418142} - m_Layer: 0 - m_Name: JimAndBob - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &464534 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11418142 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: aeb709c66d821b242b8e5016c31bb2d2, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11499784 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 78b17c518e97edb498c1ff8a4d914bd5, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 124956} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab.meta deleted file mode 100644 index 481d93ca5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/JimAndBob.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1592e529a326aad4b8a0a8c4640f000e -timeCreated: 1459009683 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab deleted file mode 100644 index a7bc65edf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab +++ /dev/null @@ -1,77 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &199570 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 431222} - - component: {fileID: 11449184} - - component: {fileID: 11461460} - - component: {fileID: 114984624536322558} - m_Layer: 0 - m_Name: Norf - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &431222 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11449184 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 91f7cce5532e4cc4796d58d33d783a80, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11461460 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8fb03bf3db5129643a756826728ce939, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 199570} - m_IsPrefabParent: 1 ---- !u!114 &114984624536322558 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 91f7cce5532e4cc4796d58d33d783a80, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab.meta deleted file mode 100644 index 84a94f909..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefab/Norf.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3f9121b460e6fb541a5dfd7384d5c03a -timeCreated: 1459008724 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller.meta deleted file mode 100644 index 6e43b9c9e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: a2548d19828b4b74791f020e59684547 -folderAsset: yes -timeCreated: 1476624500 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab deleted file mode 100644 index de7946203..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab +++ /dev/null @@ -1,111 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 114689738885920752} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4561281159853572} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 ---- !u!1 &1580553891366622 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4561281159853572} - - component: {fileID: 114221938209472608} - - component: {fileID: 114993101899204184} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4561281159853572 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1580553891366622} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 496146} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114221938209472608 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1580553891366622} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7ba7fc00ff58d414db79307d68a49cbe, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &114689738885920752 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: bb22de5ed5e7e0b42ba9a44744605d30, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &114993101899204184 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1580553891366622} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 114221938209472608} - _identifier: - _context: {fileID: 0} - _bindType: 0 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab.meta deleted file mode 100644 index f843b8235..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabInstaller/Foo.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 667e013e2005d6a4aad9cf75caef8d46 -timeCreated: 1454692704 -licenseType: Pro -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource.meta deleted file mode 100644 index f58debcec..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 8ffd30feb2b971747b2161877d04d3e8 -folderAsset: yes -timeCreated: 1476625195 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab deleted file mode 100644 index 189113686..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11408316} - - component: {fileID: 11424772} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11408316 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 09cb1c767472bd447ab51093e4a17ad3, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11424772 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c4fe41d55bac23c408a020415051f590, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab.meta deleted file mode 100644 index 320d90df2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f35ac9a6aa0dab64bafb5461a8fd393a -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab deleted file mode 100644 index 70e6b4105..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11415242} - m_Layer: 0 - m_Name: Foo2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11415242 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c4fe41d55bac23c408a020415051f590, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab.meta deleted file mode 100644 index 087fe93e0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Foo2.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 54bc08272e3f439458c8c656d27da5bc -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab deleted file mode 100644 index 60857f8f1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11419060} - m_Layer: 0 - m_Name: Gorp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11419060 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 93bd1149166ed44478c2e59b34fbfc9b, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab.meta deleted file mode 100644 index 446e1aee6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Gorp.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 889ca6448cbd11b4a9fd4511513f21ac -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab deleted file mode 100644 index f90ed026f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &154292 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 496146} - - component: {fileID: 11498922} - - component: {fileID: 11419060} - m_Layer: 0 - m_Name: GorpAndQux - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &496146 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11419060 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 93bd1149166ed44478c2e59b34fbfc9b, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11498922 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 154292} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b244b0173d6179840b86ed145aaa6bb2, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 154292} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab.meta deleted file mode 100644 index 8800bfe7b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/GorpAndQux.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bfe2502efa3e0b3438c53be39dad6c3c -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab deleted file mode 100644 index 22231c203..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab +++ /dev/null @@ -1,65 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &124956 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 464534} - - component: {fileID: 11479894} - - component: {fileID: 11448468} - m_Layer: 0 - m_Name: JimAndBob - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &464534 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11448468 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 93bfc10f4bb073945911d600dea398a5, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11479894 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 124956} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6dd802b9b69c51443af5311b06b79ca0, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 124956} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab.meta deleted file mode 100644 index 90c2a1773..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/JimAndBob.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 588f499d9ffe8944da19657e601ffa61 -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab deleted file mode 100644 index 78ba43041..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab +++ /dev/null @@ -1,77 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &199570 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 431222} - - component: {fileID: 11458152} - - component: {fileID: 11453902} - - component: {fileID: 11417458} - m_Layer: 0 - m_Name: Norf - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &431222 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11417458 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cf6600df40401e046af9c2ebfbf58b46, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11453902 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 434e869aa9c49e046b97da50b0dfa819, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11458152 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 199570} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 434e869aa9c49e046b97da50b0dfa819, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 199570} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab.meta deleted file mode 100644 index 5bd6f4b20..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromPrefabResource/Norf.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a4833165ddddda347b80b96e1a704b4e -timeCreated: 1459015737 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource.meta deleted file mode 100644 index 9efb60d24..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ce2380e0f3264c94b86ad2adc246dc7a -folderAsset: yes -timeCreated: 1476625641 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png deleted file mode 100644 index ae559b970..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png.meta deleted file mode 100644 index 683ec6ad7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture.png.meta +++ /dev/null @@ -1,57 +0,0 @@ -fileFormatVersion: 2 -guid: 8de083ec593046642b2fa0c94a0bfd21 -timeCreated: 1456063223 -licenseType: Free -TextureImporter: - fileIDToRecycleName: {} - serializedVersion: 2 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - linearTexture: 0 - correctGamma: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 0 - cubemapConvolution: 0 - cubemapConvolutionSteps: 7 - cubemapConvolutionExponent: 1.5 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 2048 - textureSettings: - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapMode: -1 - nPOTScale: 1 - lightmap: 0 - rGBM: 0 - compressionQuality: 50 - allowsAlphaSplitting: 0 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spritePixelsToUnits: 100 - alphaIsTransparency: 0 - textureType: -1 - buildTargetSettings: [] - spriteSheet: - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png deleted file mode 100644 index d888c32d5..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png.meta deleted file mode 100644 index 9da4a3a1e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromResource/TestTexture2.png.meta +++ /dev/null @@ -1,57 +0,0 @@ -fileFormatVersion: 2 -guid: b425a440f0e76634497b592404c9d18b -timeCreated: 1458260282 -licenseType: Free -TextureImporter: - fileIDToRecycleName: {} - serializedVersion: 2 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - linearTexture: 0 - correctGamma: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 0 - cubemapConvolution: 0 - cubemapConvolutionSteps: 7 - cubemapConvolutionExponent: 1.5 - seamlessCubemap: 0 - textureFormat: -1 - maxTextureSize: 2048 - textureSettings: - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapMode: -1 - nPOTScale: 1 - lightmap: 0 - rGBM: 0 - compressionQuality: 50 - allowsAlphaSplitting: 0 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spritePixelsToUnits: 100 - alphaIsTransparency: 0 - textureType: -1 - buildTargetSettings: [] - spriteSheet: - sprites: [] - outline: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab.meta deleted file mode 100644 index 0138baab3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dfbfca0c3a62df24489a30a2773172a6 -folderAsset: yes -timeCreated: 1476626100 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab deleted file mode 100644 index 329dfa462..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab +++ /dev/null @@ -1,146 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &151926 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 436462} - - component: {fileID: 11426760} - - component: {fileID: 11423502} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &436462 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 151926} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 406566} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11426760 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6997e435baf0c60488bc2bc179014813, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11423502 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 11426760} - _identifier: - _useSceneContext: 0 - _context: {fileID: 0} - _bindType: 0 ---- !u!1 &162920 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 406566} - - component: {fileID: 11460120} - - component: {fileID: 3872105960934196701} - - component: {fileID: -3776277007143769580} - m_Layer: 0 - m_Name: CircFoo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &406566 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 162920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 436462} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11460120 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _scriptableObjectInstallers: [] - _monoInstallers: [] - _installerPrefabs: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &3872105960934196701 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 617897a56465c40ee8de5e479395fbc8, type: 3} - m_Name: - m_EditorClassIdentifier: - Bar: {fileID: 0} ---- !u!114 &-3776277007143769580 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 3872105960934196701} - _identifier: - _useSceneContext: 0 - _context: {fileID: 0} - _bindType: 0 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab.meta deleted file mode 100644 index 3ce37c01a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/CircFoo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bb52c8a0d347f4445baea1484a14398e -timeCreated: 1460509291 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab deleted file mode 100644 index fc1d4e10b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab +++ /dev/null @@ -1,142 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &151926 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 436462} - - component: {fileID: 11426760} - - component: {fileID: 11423502} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!1 &162920 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 406566} - - component: {fileID: 11460120} - - component: {fileID: 11429022} - - component: {fileID: 11473484} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &406566 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 436462} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &436462 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 406566} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11423502 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 11426760} - _identifier: - _context: {fileID: 0} - _bindType: 0 ---- !u!114 &11426760 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6997e435baf0c60488bc2bc179014813, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11429022 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2161a6f5a67bb7749bb74037a259ca72, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11460120 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 11473484} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &11473484 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0a2394e0baff5a347bdf60d1c2c913d1, type: 3} - m_Name: - m_EditorClassIdentifier: - _bar: {fileID: 11429022} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162920} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab.meta deleted file mode 100644 index 222002b23..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 878b989aa92d3654f8507e4880b04678 -timeCreated: 1460509291 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab deleted file mode 100644 index d473960e0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab +++ /dev/null @@ -1,125 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &151926 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 436462} - - component: {fileID: 11426760} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!1 &162920 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 406566} - - component: {fileID: 11460120} - - component: {fileID: 11429022} - - component: {fileID: 11473484} - m_Layer: 0 - m_Name: Foo2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &406566 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 436462} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &436462 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 406566} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11426760 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6997e435baf0c60488bc2bc179014813, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11429022 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2161a6f5a67bb7749bb74037a259ca72, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11460120 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 11473484} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &11473484 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0a2394e0baff5a347bdf60d1c2c913d1, type: 3} - m_Name: - m_EditorClassIdentifier: - _bar: {fileID: 11429022} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162920} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab.meta deleted file mode 100644 index 85e69a341..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefab/Foo2.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: eeca357a223feba47a38a2791b095fc3 -timeCreated: 1476637402 -licenseType: Free -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource.meta deleted file mode 100644 index 26e505547..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9f7620038912f0441b615519297f0c0d -folderAsset: yes -timeCreated: 1476626323 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab deleted file mode 100644 index 5180c3b1c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab +++ /dev/null @@ -1,142 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &151926 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 436462} - - component: {fileID: 11413310} - - component: {fileID: 11423502} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!1 &162920 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 406566} - - component: {fileID: 11460120} - - component: {fileID: 11497872} - - component: {fileID: 11477890} - m_Layer: 0 - m_Name: FooSubContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &406566 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -37.141693, y: 4.1177154, z: 8.340115} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 436462} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &436462 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 406566} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &11413310 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b3d9dd215537204498109ca7ed42833c, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11423502 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 151926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0166d8ff8d905b048b2448179e1f5d11, type: 3} - m_Name: - m_EditorClassIdentifier: - _components: - - {fileID: 11413310} - _identifier: - _context: {fileID: 0} - _bindType: 0 ---- !u!114 &11460120 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 08eca9f7688a0a24685b89133b020c8e, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 11497872} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _kernel: {fileID: 0} ---- !u!114 &11477890 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 850feee7ebf0de346ba632c2b2abdc64, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &11497872 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 162920} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a30bc985de2744a49add38b40ccf532a, type: 3} - m_Name: - m_EditorClassIdentifier: - _bar: {fileID: 11477890} ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 162920} - m_IsPrefabParent: 1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab.meta deleted file mode 100644 index 0474d5af4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestFromSubContainerPrefabResource/FooSubContainer.prefab.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c9bcc6f4dae8ac247a0198aeef995c13 -timeCreated: 1460654592 -licenseType: Pro -NativeFormatImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback.meta deleted file mode 100644 index 2eeb89cfe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: e30058262314db249912e1ec76766f77 -folderAsset: yes -timeCreated: 1535265722 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab deleted file mode 100644 index ce18527eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab +++ /dev/null @@ -1,41 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1796700426405272} - m_IsPrefabParent: 1 ---- !u!1 &1796700426405272 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4334130748486668} - m_Layer: 0 - m_Name: Empty - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4334130748486668 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1796700426405272} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab.meta deleted file mode 100644 index 6e9f31710..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Empty.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: a812f6cc926529747b1a5e00718eb9cd -timeCreated: 1535265732 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab deleted file mode 100644 index 6dcdd91dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab +++ /dev/null @@ -1,53 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1796700426405272} - m_IsPrefabParent: 1 ---- !u!1 &1796700426405272 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4334130748486668} - - component: {fileID: 114943682704507722} - m_Layer: 0 - m_Name: Foo - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4334130748486668 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1796700426405272} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114943682704507722 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1796700426405272} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f2a3cbbac172d9d47af76aca9a4d0229, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab.meta deleted file mode 100644 index 5b3055fa3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Resources/TestInstantiateCallback/Foo.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: bd22ee392c7674541a3e81b03b647d58 -timeCreated: 1535265732 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests.meta deleted file mode 100644 index 37262a666..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 492393d0aa78c6146973086060b69c18 -folderAsset: yes -timeCreated: 1521300389 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader.meta deleted file mode 100644 index c0d59161e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 97f89e6ef92f1ff4d8ccead4bd6efa89 -folderAsset: yes -timeCreated: 1520788331 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources.meta deleted file mode 100644 index 2f37a307d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: f0b5f6a0959ea234f898e62dc9fd56ac -folderAsset: yes -timeCreated: 1520776935 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset deleted file mode 100644 index c3b6c7d95..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset +++ /dev/null @@ -1,18 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8620c058a9173b84a97d72ed5e94dbd7, type: 3} - m_Name: ZenjectDefaultSceneContractConfig - m_EditorClassIdentifier: - DefaultContracts: - - ContractName: 1 - Scene: {fileID: 102900000, guid: 842c1766cf27f1e469d9d41b9f829ab7, type: 3} - - ContractName: 2 - Scene: {fileID: 102900000, guid: e290c5ee5cba76840b3564b4fc30737c, type: 3} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset.meta deleted file mode 100644 index 3b141a2b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Resources/ZenjectDefaultSceneContractConfig.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: aa394697317502845a45deb4243e85ea -timeCreated: 1520779155 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity deleted file mode 100644 index 9e7229b62..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity +++ /dev/null @@ -1,177 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &206485286 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 206485288} - - component: {fileID: 206485287} - - component: {fileID: 206485289} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &206485287 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 206485289} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: - - 1 - _parentContractName: - _parentContractNames: [] ---- !u!4 &206485288 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &206485289 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 87c0c38a007bdb941bfe0e49f3be3032, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity.meta deleted file mode 100644 index 55e6aa124..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 842c1766cf27f1e469d9d41b9f829ab7 -timeCreated: 1520771077 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs deleted file mode 100644 index 711650353..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Zenject.Tests.AutoLoadSceneTests -{ - public class Scene1Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs.meta deleted file mode 100644 index 9861a7517..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene1Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 87c0c38a007bdb941bfe0e49f3be3032 -timeCreated: 1520771088 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity deleted file mode 100644 index 8144f2b12..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity +++ /dev/null @@ -1,178 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &206485286 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 206485288} - - component: {fileID: 206485287} - - component: {fileID: 206485289} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &206485287 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 206485289} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: - - 2 - _parentContractName: - _parentContractNames: - - 1 ---- !u!4 &206485288 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &206485289 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 01a62038a5e66fe4d9b531f0be629868, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity.meta deleted file mode 100644 index a0b6256bd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e290c5ee5cba76840b3564b4fc30737c -timeCreated: 1520771077 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs deleted file mode 100644 index 7c0a6f314..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Zenject.Tests.AutoLoadSceneTests -{ - public class Scene2Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs.meta deleted file mode 100644 index d952fdd3e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene2Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 01a62038a5e66fe4d9b531f0be629868 -timeCreated: 1520771098 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity deleted file mode 100644 index df1fcc552..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity +++ /dev/null @@ -1,177 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &206485286 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 206485288} - - component: {fileID: 206485287} - - component: {fileID: 206485289} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &206485287 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 206485289} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: [] - _parentContractName: - _parentContractNames: - - 2 ---- !u!4 &206485288 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &206485289 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 206485286} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6cf76217d15f13a498115eb20027807b, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity.meta deleted file mode 100644 index 2bef2e944..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: faa2053ed94777648896eb4be8f2b5c1 -timeCreated: 1520771077 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs deleted file mode 100644 index ff44bef8e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs +++ /dev/null @@ -1,31 +0,0 @@ -using ModestTree; - -namespace Zenject.Tests.AutoLoadSceneTests -{ - public class Qux - { - } - - public class Bar - { - public Bar(Qux qux) - { - } - } - - public class Foo - { - public Foo(Bar bar) - { - Log.Trace("Created Foo"); - } - } - - public class Scene3Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs.meta deleted file mode 100644 index 8643836db..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/AutoLoader/Scene3Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6cf76217d15f13a498115eb20027807b -timeCreated: 1520771098 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators.meta deleted file mode 100644 index d84ab270e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3a3b99287bb93754aa780e9e83424955 -folderAsset: yes -timeCreated: 1520788655 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources.meta deleted file mode 100644 index cd569c779..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ec7789799e606944e99d4d7607dfa1f4 -folderAsset: yes -timeCreated: 1520790978 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset deleted file mode 100644 index 32caeb4c6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset +++ /dev/null @@ -1,16 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8620c058a9173b84a97d72ed5e94dbd7, type: 3} - m_Name: ZenjectDefaultSceneContractConfig - m_EditorClassIdentifier: - DefaultContracts: - - ContractName: DecoratorTest2 - Scene: {fileID: 102900000, guid: e51117d8dc00ad145a3097828d414398, type: 3} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset.meta deleted file mode 100644 index 9606a5b9b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Resources/ZenjectDefaultSceneContractConfig.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1bbf171d89166d8488258f8816cfe0f4 -timeCreated: 1520790989 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity deleted file mode 100644 index cc4f0ab34..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity +++ /dev/null @@ -1,175 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &190664820 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 190664822} - - component: {fileID: 190664821} - - component: {fileID: 190664823} - m_Layer: 0 - m_Name: DecoratorContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &190664821 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 190664820} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ed7323e8fdd8c26438c6485f2060dad0, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 190664823} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _lateInstallers: [] - _lateInstallerPrefabs: [] - _lateScriptableObjectInstallers: [] - _decoratedContractName: DecoratorTest2 ---- !u!4 &190664822 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 190664820} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &190664823 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 190664820} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c4d7a9a15b734ad4682e1817c61c98c6, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity.meta deleted file mode 100644 index 33a1c9c63..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 9561978599724fa4695e4683cf4af028 -timeCreated: 1520788755 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs deleted file mode 100644 index 342510f94..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Zenject.Tests.DecoratorTests -{ - public class Scene1Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs.meta deleted file mode 100644 index 2054d484d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene1Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c4d7a9a15b734ad4682e1817c61c98c6 -timeCreated: 1520788822 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity deleted file mode 100644 index 4b8622499..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity +++ /dev/null @@ -1,177 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &170170179 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 170170181} - - component: {fileID: 170170180} - - component: {fileID: 170170182} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &170170180 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 170170179} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 170170182} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: - - DecoratorTest2 - _parentContractName: - _parentContractNames: [] ---- !u!4 &170170181 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 170170179} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &170170182 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 170170179} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a54443f8b7de6b844924c58d06f23df4, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity.meta deleted file mode 100644 index f6a8b8d97..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e51117d8dc00ad145a3097828d414398 -timeCreated: 1520788763 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs deleted file mode 100644 index 8e4572bca..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs +++ /dev/null @@ -1,24 +0,0 @@ -using ModestTree; - -namespace Zenject.Tests.DecoratorTests -{ - public class Bar - { - } - - public class Foo - { - public Foo(Bar bar) - { - Log.Trace("Created Foo"); - } - } - - public class Scene2Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.Bind().AsSingle().NonLazy(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs.meta deleted file mode 100644 index 9e943fe11..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneContractTests/Decorators/Scene2Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: a54443f8b7de6b844924c58d06f23df4 -timeCreated: 1520788854 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests.meta deleted file mode 100644 index 285a7ed6c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 47d72edc1c810dc43b2b47447e8f3059 -folderAsset: yes -timeCreated: 1527406134 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder.meta deleted file mode 100644 index 8a37b262a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: c2956b4611ef03a429daaf1a6e860996 -folderAsset: yes -timeCreated: 1527696393 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity deleted file mode 100644 index 2e0bdc0df..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity +++ /dev/null @@ -1,115 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity.meta deleted file mode 100644 index d77386716..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/EmptyScene.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: f0b451bb575d6874db7cdbcfb24a45de -timeCreated: 1527696648 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs deleted file mode 100644 index 54892f2cf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooDisposable1 : IDisposable - { - public void Dispose() - { - Debug.Log("Destroyed FooDisposable1"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs.meta deleted file mode 100644 index f4af3e8eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable1.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 4a3c7e61123b793438455e303983adc0 -timeCreated: 1527697322 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs deleted file mode 100644 index 725904b10..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooDisposable2 : IDisposable - { - public void Dispose() - { - Debug.Log("Destroyed FooDisposable2"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs.meta deleted file mode 100644 index fc2039df9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable2.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c5b51a749e060d34289822f72cb51ffe -timeCreated: 1527696771 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs deleted file mode 100644 index 2d56b2afb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooDisposable3 : IDisposable - { - public void Dispose() - { - Debug.Log("Destroyed FooDisposable3"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs.meta deleted file mode 100644 index a602607c0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooDisposable3.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 0ad810cfc96e23241a74df77abfac100 -timeCreated: 1527697900 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs deleted file mode 100644 index f0a919801..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooMonoBehaviourUnderSceneContext1 : MonoBehaviour - { - public void OnDestroy() - { - Debug.Log("Destroyed FooMonoBehaviourUnderSceneContext1"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs.meta deleted file mode 100644 index 2df14c532..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext1.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 2e7725934761f694384998e801ae4ebd -timeCreated: 1527697447 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs deleted file mode 100644 index c34e07740..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooMonoBehaviourUnderSceneContext2 : MonoBehaviour - { - public void OnDestroy() - { - Debug.Log("Destroyed FooMonoBehaviourUnderSceneContext2"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs.meta deleted file mode 100644 index a798a3312..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext2.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 9392cf77297df0d4db490c3ff2b2b782 -timeCreated: 1527696771 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs deleted file mode 100644 index 62dc7a669..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class FooMonoBehaviourUnderSceneContext3 : MonoBehaviour - { - public void OnDestroy() - { - Debug.Log("Destroyed FooMonoBehaviourUnderSceneContext3"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs.meta deleted file mode 100644 index 19cc081bc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/FooMonoBehaviourUnderSceneContext3.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 136ca26409c551145b089ce06b2860c4 -timeCreated: 1527697900 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs deleted file mode 100644 index a179019f6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Zenject.Tests.TestDestructionOrder -{ - public class ProjectInstaller : MonoInstaller - { - public override void InstallBindings() - { - Container.BindInterfacesTo().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs.meta deleted file mode 100644 index 9fb67bbb6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ProjectInstaller.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: f36e37fb74779904f9caa9ba765a74f9 -timeCreated: 1527697928 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt deleted file mode 100644 index 820275110..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt +++ /dev/null @@ -1,3 +0,0 @@ - -To test destruction order, rename the RenameThisResources folder in this directory to Resources, then add TestDestructionOrder1 and TestDestructionOrder2 to build settings, then run TestDestructionOrder1 either in unity or in a build, then look at the log to verify destruction order - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt.meta deleted file mode 100644 index b5247943d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/ReadMe.txt.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: c82ce31353243894bb0334895d801d5b -timeCreated: 1527742912 -licenseType: Free -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources.meta deleted file mode 100644 index bd18988fe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: fef386383d45a6a4fb20bb9cdbf05524 -folderAsset: yes -timeCreated: 1527697743 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab deleted file mode 100644 index cac80b1c0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab +++ /dev/null @@ -1,110 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1001 &100100000 -Prefab: - m_ObjectHideFlags: 1 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: [] - m_RemovedComponents: [] - m_ParentPrefab: {fileID: 0} - m_RootGameObject: {fileID: 1358460146733554} - m_IsPrefabParent: 1 ---- !u!1 &1358460146733554 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4092438920768598} - - component: {fileID: 114597163329256828} - - component: {fileID: 114758750225951394} - m_Layer: 0 - m_Name: ProjectContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!1 &1534153081654378 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - serializedVersion: 5 - m_Component: - - component: {fileID: 4069057323685572} - - component: {fileID: 114302445218328632} - m_Layer: 0 - m_Name: FooMonoBehaviourUnderSceneContext3 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4069057323685572 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1534153081654378} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 4092438920768598} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!4 &4092438920768598 -Transform: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1358460146733554} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4069057323685572} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114302445218328632 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1534153081654378} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 136ca26409c551145b089ce06b2860c4, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &114597163329256828 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1358460146733554} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a4e6589720da476459dc6dd71624b071, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 114758750225951394} - _installerPrefabs: [] - _scriptableObjectInstallers: [] ---- !u!114 &114758750225951394 -MonoBehaviour: - m_ObjectHideFlags: 1 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 100100000} - m_GameObject: {fileID: 1358460146733554} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f36e37fb74779904f9caa9ba765a74f9, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab.meta deleted file mode 100644 index 3ae5bb884..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/RenameThisResources/ProjectContext.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b2e49aa6f29a03f468fba4f706d6535b -timeCreated: 1527697747 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs deleted file mode 100644 index e5020b2ad..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine.SceneManagement; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class Scene1Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.BindInterfacesTo().AsSingle(); - - SceneManager.LoadScene("TestDestructionOrder2", LoadSceneMode.Additive); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs.meta deleted file mode 100644 index 06b23a218..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene1Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 878b400cccc4fc14c8da70ed4c4b8e85 -timeCreated: 1527696874 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs deleted file mode 100644 index 7de3f5442..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -namespace Zenject.Tests.TestDestructionOrder -{ - public class SceneChangeHandler : ITickable - { - public void Tick() - { - if (Input.GetKeyDown(KeyCode.Space)) - { - SceneManager.LoadScene("EmptyScene", LoadSceneMode.Single); - } - } - } - - public class Scene2Installer : MonoInstaller - { - public override void InstallBindings() - { - Container.BindInterfacesTo().AsSingle(); - Container.BindInterfacesTo().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs.meta deleted file mode 100644 index 6aa2c92d1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/Scene2Installer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 832615b3a3c558545b218542760a596c -timeCreated: 1527696874 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity deleted file mode 100644 index 9e41fd424..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity +++ /dev/null @@ -1,217 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &277729360 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 277729361} - - component: {fileID: 277729362} - m_Layer: 0 - m_Name: FooMonoBehaviourUnderSceneContext1 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &277729361 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 277729360} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 854427992} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &277729362 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 277729360} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2e7725934761f694384998e801ae4ebd, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &854427990 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 854427992} - - component: {fileID: 854427991} - - component: {fileID: 854427993} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &854427991 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 854427993} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: [] - _parentContractName: - _parentContractNames: [] ---- !u!4 &854427992 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 277729361} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &854427993 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 878b400cccc4fc14c8da70ed4c4b8e85, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity.meta deleted file mode 100644 index e7aab2f2f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder1.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 91f1a89eec2339443a33e85d58a69325 -timeCreated: 1527696648 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity deleted file mode 100644 index 7c6ea7b08..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity +++ /dev/null @@ -1,217 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &854427990 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 854427992} - - component: {fileID: 854427991} - - component: {fileID: 854427993} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &854427991 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: - - {fileID: 854427993} - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: [] - _parentContractName: - _parentContractNames: [] ---- !u!4 &854427992 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 924074628} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &854427993 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 854427990} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 832615b3a3c558545b218542760a596c, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &924074627 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 924074628} - - component: {fileID: 924074629} - m_Layer: 0 - m_Name: FooMonoBehaviourUnderSceneContext2 - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &924074628 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 924074627} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 854427992} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &924074629 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 924074627} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9392cf77297df0d4db490c3ff2b2b782, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity.meta deleted file mode 100644 index 413cac129..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestDestructionOrder/TestDestructionOrder2.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: d065ed24cd906b04f9d9764f76ccb48b -timeCreated: 1527696648 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents.meta deleted file mode 100644 index 4deb260b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 6bfeb4650d38fc0458d44b0bf7ce5885 -folderAsset: yes -timeCreated: 1527147543 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs deleted file mode 100644 index 10242db5a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs +++ /dev/null @@ -1,56 +0,0 @@ -using ModestTree; -using UnityEngine; - -namespace Zenject.Tests -{ - public class SceneContextEventsTester : MonoBehaviour - { - [SerializeField] - SceneContext _sceneContext = null; - - bool _calledPreInstall; - bool _calledPostInstall; - bool _calledPreResolve; - bool _calledPostResolve; - - public void Awake() - { - Assert.That(!_sceneContext.HasResolved); - Assert.That(!_sceneContext.HasInstalled); - - _sceneContext.PreInstall += OnPreInstall; - _sceneContext.PostInstall += OnPostInstall; - _sceneContext.PreResolve += OnPreResolve; - _sceneContext.PostResolve += OnPostResolve; - } - - public void Start() - { - Assert.That(_calledPreInstall); - Assert.That(_calledPostInstall); - Assert.That(_calledPreResolve); - Assert.That(_calledPostResolve); - } - - void OnPreInstall() - { - _calledPreInstall = true; - Assert.IsNotNull(_sceneContext.Container); - } - - void OnPostInstall() - { - _calledPostInstall = true; - } - - void OnPreResolve() - { - _calledPreResolve = true; - } - - void OnPostResolve() - { - _calledPostResolve = true; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs.meta deleted file mode 100644 index a9f906484..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/SceneContextEventsTester.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 7b3c1933dc350084cb564993979dd692 -timeCreated: 1527147544 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: -10000 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity deleted file mode 100644 index aab269cbd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity +++ /dev/null @@ -1,322 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 8 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 9 - m_Resolution: 2 - m_BakeResolution: 40 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &50013357 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 50013361} - - component: {fileID: 50013360} - - component: {fileID: 50013359} - - component: {fileID: 50013358} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &50013358 -AudioListener: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 50013357} - m_Enabled: 1 ---- !u!124 &50013359 -Behaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 50013357} - m_Enabled: 1 ---- !u!20 &50013360 -Camera: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 50013357} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &50013361 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 50013357} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &236206578 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 236206580} - - component: {fileID: 236206579} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &236206579 -Light: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 236206578} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &236206580 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 236206578} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1653562627 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 5 - m_Component: - - component: {fileID: 1653562629} - - component: {fileID: 1653562628} - - component: {fileID: 1653562630} - m_Layer: 0 - m_Name: SceneContext - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &1653562628 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1653562627} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 89715ad69b973a14899afa2c6730b30b, type: 3} - m_Name: - m_EditorClassIdentifier: - _installers: [] - _installerPrefabs: [] - _scriptableObjectInstallers: [] - _autoRun: 1 - _parentNewObjectsUnderRoot: 0 - _contractNames: [] - _parentContractName: - _parentContractNames: [] ---- !u!4 &1653562629 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1653562627} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1653562630 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1653562627} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7b3c1933dc350084cb564993979dd692, type: 3} - m_Name: - m_EditorClassIdentifier: - _sceneContext: {fileID: 1653562628} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity.meta deleted file mode 100644 index 4096edbef..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/TestSceneContextEvents.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 6a6e139b8a4d4d544a3318c53b9ae3d6 -timeCreated: 1527147597 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests.meta deleted file mode 100644 index 5c3ff2404..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b0c94addb666c4c409e150b39db8f8dc -folderAsset: yes -timeCreated: 1527239663 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources.meta deleted file mode 100644 index 431755e14..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 681f3d6520871ab4db20e21e351101c5 -folderAsset: yes -timeCreated: 1527239664 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings.meta deleted file mode 100644 index 2680b9638..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 5057c97712e3340428c4eb9ebe87b39d -folderAsset: yes -timeCreated: 1527239664 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset deleted file mode 100644 index a12a58bf0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset +++ /dev/null @@ -1,14 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5b634c456740a0e42928511e3f2ada75, type: 3} - m_Name: TestSceneContextEvents - m_EditorClassIdentifier: - Scene: {fileID: 102900000, guid: 6a6e139b8a4d4d544a3318c53b9ae3d6, type: 3} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset.meta deleted file mode 100644 index a2aaff778..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/SceneTests/TestSceneContextEvents/Tests/Resources/SceneTestFixtureSettings/TestSceneContextEvents.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: dd9aa9a55c042d34aaf3f876473a363c -timeCreated: 1527239664 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests.meta deleted file mode 100644 index 6c55387a8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 298f8de97839fb243bb9885dcfb37b43 -folderAsset: yes -timeCreated: 1533537209 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings.meta deleted file mode 100644 index 973c6457a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 712f29884b0173a4193cd48315786df9 -folderAsset: yes -timeCreated: 1533537390 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods.meta deleted file mode 100644 index 19529719e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: bcfe42301470d994596ab617acdc6545 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs deleted file mode 100644 index f3c909d34..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs +++ /dev/null @@ -1,314 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.DiContainerMethods; - -namespace Zenject.Tests.Bindings -{ - public class TestDiContainerMethods : ZenjectIntegrationTestFixture - { - const string ResourcePrefix = "TestDiContainerMethods/"; - - GameObject FooPrefab - { - get { return GetPrefab("Foo"); } - } - - GameObject GorpPrefab - { - get { return GetPrefab("Gorp"); } - } - - GameObject CameraPrefab - { - get { return GetPrefab("Camera"); } - } - - [UnityTest] - public IEnumerator TestInstantiateComponent() - { - SkipInstall(); - - var gameObject = new GameObject(); - - var foo = Container.InstantiateComponent(gameObject); - - Assert.That(foo.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiateComponentArgs() - { - SkipInstall(); - - var gameObject = new GameObject(); - - Assert.Throws(() => Container.InstantiateComponent(gameObject)); - - var gorp = Container.InstantiateComponent(gameObject, new object[] { "zxcv" }); - - Assert.IsEqual(gorp.Arg, "zxcv"); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiateComponentOnNewGameObject() - { - SkipInstall(); - - var foo = Container.InstantiateComponentOnNewGameObject(); - - Assert.That(foo.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiateComponentOnNewGameObjectArgs() - { - SkipInstall(); - - Assert.Throws(() => Container.InstantiateComponentOnNewGameObject()); - - var gorp = Container.InstantiateComponentOnNewGameObject("sdf", new object[] { "zxcv" }); - - Assert.IsEqual(gorp.Arg, "zxcv"); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefab() - { - SkipInstall(); - - var go = Container.InstantiatePrefab(FooPrefab); - - var foo = go.GetComponentInChildren(); - - Assert.That(foo.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabForMonoBehaviour() - { - SkipInstall(); - - Assert.Throws(() => Container.InstantiatePrefab(GorpPrefab)); - - var gorp = Container.InstantiatePrefabForComponent(GorpPrefab, new object[] { "asdf" }); - - Assert.IsEqual(gorp.Arg, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabResource() - { - SkipInstall(); - - Assert.Throws(() => Container.InstantiatePrefabResource(ResourcePrefix + "Gorp")); - - var gorp = Container.InstantiatePrefabResourceForComponent(ResourcePrefix + "Gorp", new object[] { "asdf" }); - - Assert.IsEqual(gorp.Arg, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabForComponent() - { - SkipInstall(); - - var camera = Container.InstantiatePrefabForComponent(CameraPrefab, new object[0]); - Assert.IsNotNull(camera); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabForComponentMistake() - { - SkipInstall(); - - Assert.Throws(() => Container.InstantiatePrefabForComponent(CameraPrefab, new object[] { "sdf" })); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiateScriptableObjectResource() - { - SkipInstall(); - - var foo = Container.InstantiateScriptableObjectResource(ResourcePrefix + "Foo2"); - Assert.That(foo.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiateScriptableObjectResourceArgs() - { - SkipInstall(); - - Assert.Throws(() => Container.InstantiateScriptableObjectResource(ResourcePrefix + "Gorp2")); - - var gorp = Container.InstantiateScriptableObjectResource(ResourcePrefix + "Gorp2", new object[] { "asdf" }); - - Assert.IsEqual(gorp.Arg, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestInjectGameObject() - { - SkipInstall(); - - var go = GameObject.Instantiate(FooPrefab); - - var foo = go.GetComponentInChildren(); - - Assert.That(!foo.WasInjected); - Container.InjectGameObject(go); - Assert.That(foo.WasInjected); - - yield break; - } - - [UnityTest] - public IEnumerator TestInjectGameObjectForMonoBehaviour() - { - SkipInstall(); - - var go = GameObject.Instantiate(GorpPrefab); - - Assert.Throws(() => Container.InjectGameObject(go)); - - var gorp = Container.InjectGameObjectForComponent(go, new object[] { "asdf" }); - - Assert.IsEqual(gorp.Arg, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestInjectGameObjectForComponent() - { - SkipInstall(); - - var go = GameObject.Instantiate(CameraPrefab); - - Container.InjectGameObjectForComponent(go, new object[0]); - yield break; - } - - [UnityTest] - public IEnumerator TestInjectGameObjectForComponentMistake() - { - SkipInstall(); - - var go = GameObject.Instantiate(CameraPrefab); - - Assert.Throws(() => Container.InjectGameObjectForComponent(go, new object[] { "sdf" })); - yield break; - } - - [UnityTest] - public IEnumerator TestLazyInstanceInjectorFail() - { - PreInstall(); - Qux.WasInjected = false; - - var qux = new Qux(); - Container.BindInstance(qux); - - Assert.That(!Qux.WasInjected); - PostInstall(); - Assert.That(!Qux.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestLazyInstanceInjectorSuccess() - { - PreInstall(); - Qux.WasInjected = false; - - var qux = new Qux(); - Container.BindInstance(qux); - Container.QueueForInject(qux); - - Assert.That(!Qux.WasInjected); - PostInstall(); - Assert.That(Qux.WasInjected); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabForComponentExplicit() - { - SkipInstall(); - - var parentGameObject = new GameObject(); - parentGameObject.transform.position = new Vector3(100, 100, 100); - var parentTransform = parentGameObject.transform; - - var go = (Foo)Container.InstantiatePrefabForComponentExplicit(typeof(Foo), FooPrefab, new List(), new GameObjectCreationParameters { ParentTransform = parentTransform }); - - var foo = go.GetComponentInChildren(); - - Assert.IsEqual(foo.transform.position, new Vector3(100, 100, 100)); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabForComponentWithPositionExplicit() - { - SkipInstall(); - - var parentGameObject = new GameObject(); - parentGameObject.transform.position = new Vector3(100, 100, 100); - parentGameObject.transform.rotation = Quaternion.Euler(10, 10, 10); - var parentTransform = parentGameObject.transform; - - var go = (Foo)Container.InstantiatePrefabForComponentExplicit(typeof(Foo), FooPrefab, new List(), new GameObjectCreationParameters - { - ParentTransform = parentTransform, - Position = new Vector3(50, 50, 50), - Rotation = Quaternion.Euler(20, 20, 20) - }); - - var foo = go.GetComponentInChildren(); - - Assert.That(Approximately(foo.transform.position, new Vector3(50, 50, 50))); - Assert.That(Approximately(foo.transform.rotation.eulerAngles, new Vector3(20, 20, 20))); - yield break; - } - - static bool Approximately(Vector3 left, Vector3 right) - { - return Mathf.Approximately(left.x, right.x) - && Mathf.Approximately(left.y, right.y) - && Mathf.Approximately(left.z, right.z); - } - - public class Qux - { - public static bool WasInjected - { - get; - set; - } - - [Inject] - public void Construct() - { - WasInjected = true; - } - } - - GameObject GetPrefab(string name) - { - return FixtureUtil.GetPrefab(ResourcePrefix + name); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs.meta deleted file mode 100644 index 12c2c9d2b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestDiContainerMethods/TestDiContainerMethods.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 03827fc575424954ba63c60d88fdd289 -timeCreated: 1506426682 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent.meta deleted file mode 100644 index 08a5a7a52..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3da0ff226e0beea4d91bdef5be3cc543 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs deleted file mode 100644 index 7c2a7526a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromComponentOn : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestBasic() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - - Container.Bind().FromComponentOn(gameObject).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(Container.Resolve()); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestBasicMultiple() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - gameObject.AddComponent(); - - Container.Bind().FromComponentsOn(gameObject).AsCached().NonLazy(); - - PostInstall(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestBasicByMethod() - { - PreInstall(); - - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - - Container.Bind().FromComponentOn(context => gameObject).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(Container.Resolve()); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestBasicByMethodMultiple() - { - PreInstall(); - - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - gameObject.AddComponent(); - - Container.Bind().FromComponentsOn(context => gameObject).AsCached().NonLazy(); - - PostInstall(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - - Container.Bind(typeof(IFoo), typeof(Foo)).To().FromComponentOn(gameObject).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCachedMultipleConcrete() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - gameObject.AddComponent(); - gameObject.AddComponent(); - - Container.Bind(typeof(IFoo), typeof(IBar)) - .To(new List { typeof(Foo), typeof(Bar) }) - .FromComponentOn(gameObject).AsCached().NonLazy(); - - PostInstall(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.IsEqual(Container.ResolveAll().Count, 2); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - public interface IBar - { - } - - public interface IFoo2 - { - } - - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo, IBar, IFoo2 - { - } - - public class Bar : MonoBehaviour, IFoo, IBar, IFoo2 - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs.meta deleted file mode 100644 index c85e9987a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromComponentOn.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 69fc44fa2e9354d409863d794494198f -timeCreated: 1529229722 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs deleted file mode 100644 index c46f5231c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs +++ /dev/null @@ -1,152 +0,0 @@ - -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromNewComponentOn : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestBasic() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind().FromNewComponentOn(gameObject).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestBasicByMethod() - { - PreInstall(); - - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind().FromNewComponentOn(context => gameObject).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind().FromNewComponentOn(gameObject).AsTransient().NonLazy(); - Container.Bind().To().FromNewComponentOn(gameObject).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind(typeof(IFoo), typeof(Foo)).To().FromNewComponentOn(gameObject).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCached1() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind().FromNewComponentOn(gameObject).AsCached().NonLazy(); - Container.Bind().To().FromNewComponentOn(gameObject).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestCached2() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind(typeof(IFoo), typeof(Foo)).To() - .FromNewComponentOn(gameObject).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCachedMultipleConcrete() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Foo"); - - Container.BindInstance(gameObject).WithId("Foo"); - - Container.Bind(typeof(IFoo), typeof(IBar)) - .To(new List { typeof(Foo), typeof(Bar) }) - .FromNewComponentOn(gameObject).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - public interface IBar - { - } - - public interface IFoo2 - { - } - - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo, IBar, IFoo2 - { - } - - public class Bar : MonoBehaviour, IFoo, IBar, IFoo2 - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs.meta deleted file mode 100644 index 7749bfe76..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponent/TestFromNewComponentOn.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 4d448c0958b131e4487e3e814771e282 -timeCreated: 1529229722 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren.meta deleted file mode 100644 index c0d86ab9e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b28f74c42a00cce4c966429fc9bf3304 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs deleted file mode 100644 index 8ce1f7691..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs +++ /dev/null @@ -1,229 +0,0 @@ - -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromComponentInChildren : ZenjectIntegrationTestFixture - { - Root _root; - Child _child1; - Child _child2; - Grandchild _grandchild; - - public void Setup1() - { - _root = new GameObject("root").AddComponent(); - - _child1 = new GameObject("child1").AddComponent(); - _child1.transform.SetParent(_root.transform); - - _child2 = new GameObject("child2").AddComponent(); - _child2.transform.SetParent(_root.transform); - - _grandchild = new GameObject("grandchild").AddComponent(); - _grandchild.transform.SetParent(_child1.transform); - } - - [UnityTest] - public IEnumerator RunMatchSingleChild() - { - Setup1(); - PreInstall(); - Container.Bind().FromComponentInChildren(); - Container.Bind().FromComponentInChildren(); - - PostInstall(); - - Assert.IsEqual(_root.Grandchild, _grandchild); - Assert.IsEqual(_root.Childs.Count, 1); - Assert.IsEqual(_root.Childs[0], _child1); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchAllChildren() - { - Setup1(); - PreInstall(); - Container.Bind().FromComponentInChildren(); - Container.Bind().FromComponentsInChildren(); - - PostInstall(); - - Assert.IsEqual(_root.Grandchild, _grandchild); - Assert.IsEqual(_root.Childs.Count, 2); - Assert.IsEqual(_root.Childs[0], _child1); - Assert.IsEqual(_root.Childs[1], _child2); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingChildrenFailure() - { - new GameObject("root").AddComponent(); - - PreInstall(); - Container.Bind().FromComponentInChildren(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingChildrenSuccess() - { - var root = new GameObject("root").AddComponent(); - - var grandchild = new GameObject("grandchild").AddComponent(); - grandchild.transform.SetParent(root.transform); - - PreInstall(); - Container.Bind().FromComponentInChildren(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional() - { - var root = new GameObject("root").AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentInChildren(); - - PostInstall(); - - Assert.IsNull(root.Child); - - yield break; - } - - [UnityTest] - public IEnumerator TestOptional2() - { - var root = new GameObject("root").AddComponent(); - - var grandChild = new GameObject("grandchild").AddComponent(); - grandChild.transform.SetParent(root.transform, false); - - PreInstall(); - - Container.Bind().FromComponentsInChildren(); - Container.Bind().FromComponentInChildren(); - - PostInstall(); - - // The FromComponentInChildren call should match nothing when optional like in - // list bindings - Assert.That(root.Childs.IsEmpty()); - - yield break; - } - - [UnityTest] - public IEnumerator RunMatchSingleChildNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind(typeof(Grandchild)).FromComponentInChildren(); - Container.Bind(typeof(Child)).FromComponentInChildren(); - - PostInstall(); - - Assert.IsEqual(_root.Grandchild, _grandchild); - Assert.IsEqual(_root.Childs.Count, 1); - Assert.IsEqual(_root.Childs[0], _child1); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchAllChildrenNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind(typeof(Grandchild)).FromComponentInChildren(); - Container.Bind().FromComponentsInChildren(); - - PostInstall(); - - Assert.IsEqual(_root.Grandchild, _grandchild); - Assert.IsEqual(_root.Childs.Count, 2); - Assert.IsEqual(_root.Childs[0], _child1); - Assert.IsEqual(_root.Childs[1], _child2); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingChildrenFailureNonGeneric() - { - new GameObject("root").AddComponent(); - - PreInstall(); - Container.Bind(typeof(Grandchild)).FromComponentInChildren(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingChildrenSuccessNonGeneric() - { - var root = new GameObject("root").AddComponent(); - - var grandchild = new GameObject("grandchild").AddComponent(); - grandchild.transform.SetParent(root.transform); - - PreInstall(); - Container.Bind(typeof(Grandchild)).FromComponentInChildren(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestOptionalNonGeneric() - { - var root = new GameObject("root").AddComponent(); - - PreInstall(); - - Container.Bind(typeof(Child)).FromComponentInChildren(); - - PostInstall(); - - Assert.IsNull(root.Child); - - yield break; - } - - public class Root : MonoBehaviour - { - [Inject] - public Grandchild Grandchild; - - [Inject] - public List Childs; - } - - public class Child : MonoBehaviour - { - } - - public class Grandchild : MonoBehaviour - { - } - - public class RootWithOptional : MonoBehaviour - { - [InjectOptional] - public Child Child; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs.meta deleted file mode 100644 index 3cb113440..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInChildren/TestFromComponentInChildren.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 60e4db58b41116646b1675963b1c75a1 -timeCreated: 1485741160 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy.meta deleted file mode 100644 index bcc7de4b9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 703bae5899505584ea4bd2f89e7c5686 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs deleted file mode 100644 index ac4a0560d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs +++ /dev/null @@ -1,213 +0,0 @@ - -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromComponentInHierarchy : ZenjectIntegrationTestFixture - { - Foo _foo1; - Foo _foo2; - - public void Setup1() - { - var root = new GameObject(); - - _foo1 = root.AddComponent(); - - var child1 = new GameObject(); - child1.transform.SetParent(root.transform); - - var child2 = new GameObject(); - child2.transform.SetParent(root.transform); - - _foo2 = child2.AddComponent(); - } - - public void Setup2() - { - var root = new GameObject(); - - var child1 = new GameObject(); - child1.transform.SetParent(root.transform); - } - - [UnityTest] - public IEnumerator RunMatchSingle() - { - Setup1(); - PreInstall(); - Container.Bind().AsSingle(); - Container.Bind().FromComponentInHierarchy().AsSingle(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 1); - Assert.IsEqual(qux.Foos[0], _foo1); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchMultiple() - { - Setup1(); - PreInstall(); - Container.Bind().AsSingle(); - Container.Bind().FromComponentsInHierarchy().AsCached(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 2); - Assert.IsEqual(qux.Foos[0], _foo1); - Assert.IsEqual(qux.Foos[1], _foo2); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchNotFoundFailure() - { - Setup2(); - PreInstall(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromComponentInHierarchy().AsSingle(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchNotFoundSuccess() - { - Setup2(); - PreInstall(); - - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromComponentsInHierarchy().AsCached(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 0); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional() - { - PreInstall(); - - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromComponentInHierarchy().AsSingle(); - - PostInstall(); - - var qiv = Container.Resolve(); - Assert.IsNull(qiv.Foo); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchSingleNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind().AsSingle(); - Container.Bind(typeof(Foo)).FromComponentInHierarchy().AsSingle(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 1); - Assert.IsEqual(qux.Foos[0], _foo1); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchMultipleNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind().AsSingle(); - Container.Bind(typeof(Foo)).FromComponentsInHierarchy().AsCached(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 2); - Assert.IsEqual(qux.Foos[0], _foo1); - Assert.IsEqual(qux.Foos[1], _foo2); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchNotFoundFailureNonGeneric() - { - Setup2(); - PreInstall(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind(typeof(Foo)).FromComponentInHierarchy().AsSingle(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchNotFoundSuccessNonGeneric() - { - Setup2(); - PreInstall(); - - Container.Bind().AsSingle().NonLazy(); - Container.Bind(typeof(Foo)).FromComponentsInHierarchy().AsCached(); - - PostInstall(); - - var qux = Container.Resolve(); - Assert.IsEqual(qux.Foos.Count, 0); - yield break; - } - - [UnityTest] - public IEnumerator TestOptionalNonGeneric() - { - PreInstall(); - - Container.Bind().AsSingle().NonLazy(); - Container.Bind(typeof(Foo)).FromComponentInHierarchy().AsSingle(); - - PostInstall(); - - var qiv = Container.Resolve(); - Assert.IsNull(qiv.Foo); - yield break; - } - - public class Foo : MonoBehaviour - { - } - - public class Qux - { - [Inject] - public List Foos; - } - - public class Bar - { - [Inject] - public Foo Foo; - } - - public class Qiv - { - [InjectOptional] - public Foo Foo; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs.meta deleted file mode 100644 index b3861f40e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchy/TestFromComponentInHierarchy.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 33f32e2013960314f841932f66d9b92c -timeCreated: 1485743323 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta deleted file mode 100644 index 37ee0fc04..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b4dba59ca52fc08499490254c3940f59 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs deleted file mode 100644 index 578f0b97c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs +++ /dev/null @@ -1,46 +0,0 @@ - -using System.Collections; -using System.Linq; -using NUnit.Framework; -using UnityEngine; -using UnityEngine.TestTools; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings.FromComponentInHierarchyGameObjectContext -{ - public class TestFromComponentInHierarchyGameObjectContext : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get - { - return FixtureUtil.GetPrefab("TestFromComponentInHierarchyGameObjectContext/Foo"); - } - } - - [SetUp] - public void SetUp() - { - new GameObject().AddComponent(); - new GameObject().AddComponent(); - } - - [UnityTest] - public IEnumerator TestCorrectHierarchy() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsNotNull(foo.Gorp); - Assert.IsEqual(foo.gameObject.GetComponentsInChildren().Single(), foo.Gorp); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs.meta deleted file mode 100644 index 42ddabf20..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInHierarchyGameObjectContext/TestFromComponentInHierarchyGameObjectContext.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e4a3a41ae23a4bb44b068790d065e7e4 -timeCreated: 1485743325 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents.meta deleted file mode 100644 index 234105686..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b12b2bde79e96504980df2b05b948e89 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs deleted file mode 100644 index 4e0c2816c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs +++ /dev/null @@ -1,237 +0,0 @@ - -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromComponentInParents : ZenjectIntegrationTestFixture - { - Root _root; - Child _child1; - Child _child2; - Child _child3; - Grandchild _grandchild; - - public void Setup1() - { - _root = new GameObject().AddComponent(); - - _child1 = new GameObject().AddComponent(); - _child1.transform.SetParent(_root.transform); - - _child2 = new GameObject().AddComponent(); - _child2.transform.SetParent(_child1.transform); - - _child3 = _child2.gameObject.AddComponent(); - - _grandchild = new GameObject().AddComponent(); - _grandchild.transform.SetParent(_child2.transform); - } - - public void Setup2() - { - _root = new GameObject().AddComponent(); - - _grandchild = new GameObject().AddComponent(); - _grandchild.transform.SetParent(_root.transform); - } - - [UnityTest] - public IEnumerator RunMatchSingleParent() - { - Setup1(); - PreInstall(); - Container.Bind().FromComponentInParents(); - Container.Bind().FromComponentInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 1); - Assert.IsEqual(_grandchild.Childs[0], _child2); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchMultipleParents() - { - Setup1(); - PreInstall(); - Container.Bind().FromComponentInParents(); - Container.Bind().FromComponentsInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 3); - Assert.IsEqual(_grandchild.Childs[0], _child2); - Assert.IsEqual(_grandchild.Childs[1], _child3); - Assert.IsEqual(_grandchild.Childs[2], _child1); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingParentFailure() - { - var root = new GameObject().AddComponent(); - - var grandchild = new GameObject().AddComponent(); - grandchild.transform.SetParent(root.transform); - - PreInstall(); - Container.Bind().FromComponentInParents(); - Container.Bind().FromComponentInParents(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingParentSuccess() - { - Setup2(); - PreInstall(); - Container.Bind().FromComponentInParents(); - Container.Bind().FromComponentsInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 0); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional() - { - new GameObject(); - var child = new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentInParents(); - - PostInstall(); - - Assert.IsNull(child.Root); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchSingleParentNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind(typeof(Root)).FromComponentInParents(); - Container.Bind(typeof(Child)).FromComponentInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 1); - Assert.IsEqual(_grandchild.Childs[0], _child2); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator RunMatchMultipleParentsNonGeneric() - { - Setup1(); - PreInstall(); - Container.Bind(typeof(Root)).FromComponentInParents(); - Container.Bind(typeof(Child)).FromComponentsInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 3); - Assert.IsEqual(_grandchild.Childs[0], _child2); - Assert.IsEqual(_grandchild.Childs[1], _child3); - Assert.IsEqual(_grandchild.Childs[2], _child1); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingParentFailureNonGeneric() - { - var root = new GameObject().AddComponent(); - - var grandchild = new GameObject().AddComponent(); - grandchild.transform.SetParent(root.transform); - - PreInstall(); - Container.Bind(typeof(Root)).FromComponentInParents(); - Container.Bind(typeof(Child)).FromComponentInParents(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunMissingParentSuccessNonGeneric() - { - Setup2(); - PreInstall(); - Container.Bind(typeof(Root)).FromComponentInParents(); - Container.Bind(typeof(Child)).FromComponentsInParents(); - - PostInstall(); - - Assert.IsEqual(_grandchild.Childs.Count, 0); - Assert.IsEqual(_grandchild.Root, _root); - yield break; - } - - [UnityTest] - public IEnumerator TestOptionalNonGeneric() - { - new GameObject(); - var child = new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind(typeof(Root)).FromComponentInParents(); - - PostInstall(); - - Assert.IsNull(child.Root); - yield break; - } - - public class Root : MonoBehaviour - { - } - - public class Child : MonoBehaviour - { - } - - public class Grandchild : MonoBehaviour - { - [Inject] - public Root Root; - - [Inject] - public List Childs; - } - - public class Grandchild2 : MonoBehaviour - { - [Inject] - public Root Root; - - [Inject] - public Child Child; - } - - public class ChildWithOptional : MonoBehaviour - { - [InjectOptional] - public Root Root; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs.meta deleted file mode 100644 index c746357b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInParents/TestFromComponentInParents.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9df118a8d9c898344bed28c6913a6d7e -timeCreated: 1485741161 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings.meta deleted file mode 100644 index 6ac632c96..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1f10443fc834f9f4cbd6ce1fd5bce4a3 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs deleted file mode 100644 index a2b9ddb98..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs +++ /dev/null @@ -1,244 +0,0 @@ - -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromComponentSibling : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator RunTestSingleMatch() - { - var foo = new GameObject().AddComponent(); - - var bar = foo.gameObject.AddComponent(); - var qux1 = foo.gameObject.AddComponent(); - foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentSibling(); - Container.Bind().FromComponentSibling(); - Container.Bind().FromComponentSibling(); - - PostInstall(); - - Assert.IsEqual(foo.Bar, bar); - Assert.IsEqual(foo.IBar, bar); - Assert.IsEqual(foo.Qux.Count, 1); - Assert.IsEqual(foo.Qux[0], qux1); - Assert.IsEqual(qux1.OtherQux, qux1); - yield break; - } - - [UnityTest] - public IEnumerator RunTestSingleMatchOptional1() - { - var foo = new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentSibling(); - - PostInstall(); - - Assert.IsNull(foo.Bar); - yield break; - } - - [UnityTest] - public IEnumerator RunTestSingleMatchOptional2() - { - var foo = new GameObject().AddComponent(); - var bar = foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentSibling(); - - PostInstall(); - - Assert.IsEqual(foo.Bar, bar); - yield break; - } - - [UnityTest] - public IEnumerator RunTestSingleMatchOptional3() - { - new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentSibling(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMultiple() - { - var foo = new GameObject().AddComponent(); - - var bar = foo.gameObject.AddComponent(); - var qux1 = foo.gameObject.AddComponent(); - var qux2 = foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentsSibling(); - Container.Bind().FromComponentSibling(); - Container.Bind().FromComponentSibling(); - - PostInstall(); - - Assert.IsEqual(foo.Bar, bar); - Assert.IsEqual(foo.IBar, bar); - Assert.IsEqual(foo.Qux[0], qux1); - Assert.IsEqual(foo.Qux[1], qux2); - - // Should skip self - Assert.IsEqual(foo.Qux[0].OtherQux, foo.Qux[1]); - Assert.IsEqual(foo.Qux[1].OtherQux, foo.Qux[0]); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMissingFailure() - { - new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentSibling(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMissingSuccess() - { - var foo = new GameObject().AddComponent(); - foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind().FromComponentsSibling(); - Container.Bind().FromComponentSibling(); - Container.Bind().FromComponentSibling(); - - PostInstall(); - - Assert.That(foo.Qux.IsEmpty()); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMultipleNonGeneric() - { - var foo = new GameObject().AddComponent(); - - var bar = foo.gameObject.AddComponent(); - var qux1 = foo.gameObject.AddComponent(); - var qux2 = foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind(typeof(Qux)).FromComponentsSibling(); - Container.Bind(typeof(Bar)).FromComponentSibling(); - Container.Bind(typeof(IBar)).FromComponentSibling(); - - PostInstall(); - - Assert.IsEqual(foo.Bar, bar); - Assert.IsEqual(foo.IBar, bar); - Assert.IsEqual(foo.Qux[0], qux1); - Assert.IsEqual(foo.Qux[1], qux2); - - // Should skip self - Assert.IsEqual(foo.Qux[0].OtherQux, foo.Qux[1]); - Assert.IsEqual(foo.Qux[1].OtherQux, foo.Qux[0]); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMissingFailureNonGeneric() - { - new GameObject().AddComponent(); - - PreInstall(); - - Container.Bind(typeof(Bar)).FromComponentSibling(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator RunTestMissingSuccessNonGeneric() - { - var foo = new GameObject().AddComponent(); - foo.gameObject.AddComponent(); - - PreInstall(); - - Container.Bind(typeof(Qux)).FromComponentsSibling(); - Container.Bind(typeof(Bar)).FromComponentSibling(); - Container.Bind(typeof(IBar)).FromComponentSibling(); - - PostInstall(); - - Assert.That(foo.Qux.IsEmpty()); - yield break; - } - - public class Qux : MonoBehaviour - { - [Inject] - public Qux OtherQux; - } - - public interface IBar - { - } - - public class Bar : MonoBehaviour, IBar - { - } - - public class FooOptional : MonoBehaviour - { - [InjectOptional] - public Bar Bar; - } - - public class FooOptional2 : MonoBehaviour - { - [Inject] - public Bar Bar; - } - - public class Foo : MonoBehaviour - { - [Inject] - public Bar Bar; - - [Inject] - public IBar IBar; - - [Inject] - public List Qux; - } - - public class Gorp : MonoBehaviour - { - [Inject] - public Bar Bar; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs.meta deleted file mode 100644 index 995f9e7ee..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromComponentInSiblings/TestFromComponentInSiblings.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b0d37dd020d97b3459f64a7f3434ff96 -timeCreated: 1485741161 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject.meta deleted file mode 100644 index ee3ce74aa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 9116904793056a445abaca59d9fd9c91 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs deleted file mode 100644 index 4341ab914..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs +++ /dev/null @@ -1,207 +0,0 @@ - -using System; -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromGameObject : ZenjectIntegrationTestFixture - { - const string GameObjName = "TestObj"; - - [UnityTest] - public IEnumerator TestBasic() - { - PreInstall(); - Container.Bind().FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - Container.Bind(typeof(IFoo), typeof(Foo)).To().FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - Container.Bind().FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsTransient().NonLazy(); - Container.Bind().To().FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestCached1() - { - PreInstall(); - Container.Bind().FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsCached().NonLazy(); - Container.Bind().To().FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestCached2() - { - PreInstall(); - Container.Bind(typeof(Foo), typeof(IFoo)).To() - .FromNewComponentOnNewGameObject().WithGameObjectName(GameObjName).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleConcreteTransient1() - { - PreInstall(); - Container.Bind().To(typeof(Foo), typeof(Bar)).FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleConcreteTransient2() - { - PreInstall(); - Container.Bind(typeof(IFoo), typeof(IBar)).To(new List {typeof(Foo), typeof(Bar)}).FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(4); - FixtureUtil.AssertComponentCount(2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleConcreteCached() - { - PreInstall(); - Container.Bind(typeof(IFoo), typeof(IBar)).To(new List {typeof(Foo), typeof(Bar)}).FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleConcreteSingle() - { - PreInstall(); - Container.Bind(typeof(IFoo), typeof(IBar)).To(new List {typeof(Foo), typeof(Bar)}).FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransformGroup() - { - PreInstall(); - - Container.Bind().FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName).UnderTransformGroup("Foo").AsSingle().NonLazy(); - - PostInstall(); - - var foo = GameObject.Find("Foo").transform.GetChild(0); - - Assert.IsNotNull(foo.GetComponent()); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransform() - { - PreInstall(); - var tempGameObject = new GameObject("Foo"); - - Container.Bind().FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName) - .UnderTransform(tempGameObject.transform).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(tempGameObject.transform.GetChild(0).GetComponent()); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransformGetter() - { - PreInstall(); - var tempGameObject = new GameObject("Foo"); - - Container.Bind().FromNewComponentOnNewGameObject() - .WithGameObjectName(GameObjName) - .UnderTransform(context => tempGameObject.transform).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(tempGameObject.transform.GetChild(0).GetComponent()); - yield break; - } - - public interface IBar - { - } - - public interface IFoo - { - } - - public class Foo : MonoBehaviour, IFoo, IBar - { - } - - public class Bar : MonoBehaviour, IFoo, IBar - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs.meta deleted file mode 100644 index e03521c33..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObject/TestFromGameObject.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e879b4e0ab309f247a1efc11a7a71bba -timeCreated: 1476623361 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller.meta deleted file mode 100644 index 7f386d9e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 7bad27777f963f244b6475fdd2f56155 -folderAsset: yes -timeCreated: 1538468409 -licenseType: Pro -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs deleted file mode 100644 index a3f35fea7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs +++ /dev/null @@ -1,59 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings.FromGameObjectInstaller -{ - public class TestFromGameObjectInstaller : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestInstaller() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewGameObjectInstaller().AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestMethod() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewGameObjectMethod(InstallFoo).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - void InstallFoo(DiContainer subContainer) - { - subContainer.Bind().AsSingle().WithArguments("asdf"); - } - - public class Qux - { - [Inject] - public string Data; - } - - public class FooInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle().WithArguments("asdf"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs.meta deleted file mode 100644 index 3fbcb6453..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromGameObjectInstaller/TestFromGameObjectInstaller.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c0dfdf55fcc548d47b0b804800f9c7e5 -timeCreated: 1538468409 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource.meta deleted file mode 100644 index bb3711e0a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1584905eb3a75484099619f9e66362b1 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs deleted file mode 100644 index 5e1804e06..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs +++ /dev/null @@ -1,101 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.FromNewScriptableObjectResource; - -namespace Zenject.Tests.Bindings -{ - public class TestFromNewScriptableObjectResource : ZenjectIntegrationTestFixture - { - const string PathPrefix = "TestFromNewScriptableObjectResource/"; - - [UnityTest] - public IEnumerator TestTransientError() - { - PreInstall(); - // Validation should detect that it doesn't exist - Container.Bind().FromNewScriptableObjectResource(PathPrefix + "asdfasdfas").AsTransient().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - Foo.InstanceCount = 0; - Container.Bind().FromNewScriptableObjectResource(PathPrefix + "Foo").AsTransient(); - - PostInstall(); - - var foo = Container.Resolve(); - Assert.That(foo.WasInjected); - - Assert.IsEqual(Foo.InstanceCount, 1); - - var foo2 = Container.Resolve(); - Assert.IsNotEqual(foo, foo2); - Assert.IsEqual(Foo.InstanceCount, 2); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - Foo.InstanceCount = 0; - - Container.Bind(typeof(IFoo), typeof(Foo)).To().FromNewScriptableObjectResource(PathPrefix + "Foo").AsSingle(); - - PostInstall(); - - Container.Resolve(); - Assert.IsEqual(Foo.InstanceCount, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestAbstractBinding() - { - PreInstall(); - Foo.InstanceCount = 0; - - Container.Bind().To() - .FromNewScriptableObjectResource(PathPrefix + "Foo").AsSingle().NonLazy(); - - PostInstall(); - - Container.Resolve(); - Assert.IsEqual(Foo.InstanceCount, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArgumentsFail() - { - PreInstall(); - Container.Bind() - .FromNewScriptableObjectResource(PathPrefix + "Bob").AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArguments() - { - PreInstall(); - Container.Bind() - .FromNewScriptableObjectResource(PathPrefix + "Bob").AsSingle() - .WithArguments("test1").NonLazy(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Arg, "test1"); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs.meta deleted file mode 100644 index b7dd7e76e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromNewScriptableObjectResource/TestFromNewScriptableObjectResource.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 524c1ea1726f5b24e99d297bf3bab1b3 -timeCreated: 1487537569 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab.meta deleted file mode 100644 index bb1d35fbf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: d3728543fde13364396f833fea981d45 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs deleted file mode 100644 index fd178fa5c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs +++ /dev/null @@ -1,222 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.FromPrefab; - -namespace Zenject.Tests.Bindings -{ - public class TestFromPrefab : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get { return GetPrefab("Foo"); } - } - - GameObject GorpPrefab - { - get { return GetPrefab("Gorp"); } - } - - GameObject GorpAndQuxPrefab - { - get { return GetPrefab("GorpAndQux"); } - } - - GameObject NorfPrefab - { - get { return GetPrefab("Norf"); } - } - - GameObject JimAndBobPrefab - { - get { return GetPrefab("JimAndBob"); } - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - Container.Bind().FromComponentInNewPrefab(FooPrefab).AsTransient().NonLazy(); - Container.Bind().FromComponentInNewPrefab(FooPrefab).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - Container.Bind(typeof(IFoo), typeof(Foo)).To().FromComponentInNewPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - Assert.IsNotNull(Container.Resolve()); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCached1() - { - PreInstall(); - Container.Bind(typeof(Foo), typeof(Bar)).FromComponentInNewPrefab(FooPrefab) - .WithGameObjectName("Foo").AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjectsWithName("Foo", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArgumentsFail() - { - PreInstall(); - // They have required arguments - Container.Bind(typeof(Gorp), typeof(Qux)).FromComponentInNewPrefab(GorpAndQuxPrefab).AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArgumentsFail2() - { - PreInstall(); - Container.Bind() - .FromComponentInNewPrefab(GorpAndQuxPrefab).WithGameObjectName("Gorp").AsSingle() - .WithArguments(5, "test1").NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArgumentsSuccess() - { - PreInstall(); - Container.Bind().FromComponentInNewPrefab(GorpPrefab) - .WithGameObjectName("Gorp").AsSingle() - .WithArguments("test1").NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjectsWithName("Gorp", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithAbstractSearchSingleMatch() - { - PreInstall(); - // There are three components that implement INorf on this prefab - Container.Bind().FromComponentInNewPrefab(NorfPrefab).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(3); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithAbstractSearchMultipleMatch() - { - PreInstall(); - // There are three components that implement INorf on this prefab - Container.Bind().FromComponentsInNewPrefab(NorfPrefab).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(3); - FixtureUtil.AssertResolveCount(Container, 3); - yield break; - } - - [UnityTest] - public IEnumerator TestAbstractBindingConcreteSearch() - { - PreInstall(); - // Should ignore the Norf2 component on it - Container.Bind().To().FromComponentsInNewPrefab(NorfPrefab).AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertResolveCount(Container, 2); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleMatchFailure() - { - PreInstall(); - Container.Bind().FromComponentsInNewPrefab(FooPrefab).AsSingle().NonLazy(); - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleMatchTransform() - { - PreInstall(); - Container.Bind().FromComponentInNewPrefab(FooPrefab).AsCached(); - PostInstall(); - var transform = Container.Resolve(); - Assert.IsNotNull(transform); - Assert.IsNull(transform.parent); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCircularDependencies() - { - PreInstall(); - // Jim and Bob both depend on each other - Container.Bind(typeof(Jim), typeof(Bob)).FromComponentInNewPrefab(JimAndBobPrefab).AsSingle().NonLazy(); - Container.BindInterfacesTo().AsSingle().NonLazy(); - - PostInstall(); - yield break; - } - - GameObject GetPrefab(string name) - { - return FixtureUtil.GetPrefab("TestFromPrefab/{0}".Fmt(name)); - } - - public class JimAndBobRunner : IInitializable - { - readonly Bob _bob; - readonly Jim _jim; - - public JimAndBobRunner(Jim jim, Bob bob) - { - _bob = bob; - _jim = jim; - } - - public void Initialize() - { - Assert.IsNotNull(_jim.Bob); - Assert.IsNotNull(_bob.Jim); - - Log.Info("Jim and bob successfully got the other reference"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs.meta deleted file mode 100644 index 9a9366c94..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefab/TestFromPrefab.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9a11ff4a9421f2949993c4dc34f50335 -timeCreated: 1454819941 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller.meta deleted file mode 100644 index 00961f09e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 004fb639c2306474c8f8825720e5a9d2 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs deleted file mode 100644 index 599a6d329..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs +++ /dev/null @@ -1,128 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings.FromPrefabInstaller -{ - public class TestFromPrefabInstaller : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get { return FixtureUtil.GetPrefab(FooPrefabResourcePath); } - } - - string FooPrefabResourcePath - { - get { return "TestFromPrefabInstaller/Foo"; } - } - - [UnityTest] - public IEnumerator TestInstaller() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabInstaller(FooPrefab).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestInstallerGetter() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabInstaller(_ => FooPrefab).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestMethod() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabMethod(FooPrefab, InstallFoo).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestMethodGetter() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabMethod((context) => FooPrefab, InstallFoo).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestResourceInstaller() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabResourceInstaller(FooPrefabResourcePath).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestResourceMethod() - { - PreInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewPrefabResourceMethod(FooPrefabResourcePath, InstallFoo).AsCached(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().Data, "asdf"); - yield break; - } - - void InstallFoo(DiContainer subContainer) - { - subContainer.Bind().AsSingle().WithArguments("asdf"); - } - - public class Qux - { - [Inject] - public string Data; - - [Inject] - public Foo Foo; - } - - public class FooInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle().WithArguments("asdf"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs.meta deleted file mode 100644 index 05c9f4aca..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabInstaller/TestFromPrefabInstaller.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6591427867291174ba958928b193a190 -timeCreated: 1528215846 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource.meta deleted file mode 100644 index b2e3039bf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ab61730ee27e0954db743cf10ae967bd -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs deleted file mode 100644 index 5b0fcb250..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs +++ /dev/null @@ -1,179 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.FromPrefabResource; - -namespace Zenject.Tests.Bindings -{ - public class TestFromPrefabResource : ZenjectIntegrationTestFixture - { - const string PathPrefix = "TestFromPrefabResource/"; - - [UnityTest] - public IEnumerator TestTransientError() - { - PreInstall(); - // Validation should detect that it doesn't exist - Container.Bind().FromComponentInNewPrefabResource(PathPrefix + "asdfasdfas").AsTransient().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - Container.Bind().FromComponentInNewPrefabResource(PathPrefix + "Foo").AsTransient().NonLazy(); - Container.Bind().FromComponentInNewPrefabResource(PathPrefix + "Foo").AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromComponentInNewPrefabResource(PathPrefix + "Foo").AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCached1() - { - PreInstall(); - Container.Bind(typeof(Foo), typeof(Bar)).FromComponentInNewPrefabResource(PathPrefix + "Foo") - .WithGameObjectName("Foo").AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjectsWithName("Foo", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArgumentsFail() - { - PreInstall(); - // They have required arguments - Container.Bind(typeof(Gorp), typeof(Qux)).FromComponentInNewPrefabResource(PathPrefix + "GorpAndQux").AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestWithArguments() - { - PreInstall(); - Container.Bind(typeof(Gorp)) - .FromComponentInNewPrefabResource(PathPrefix + "Gorp").WithGameObjectName("Gorp").AsSingle() - .WithArguments("test1").NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjectsWithName("Gorp", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithAbstractSearchSingleMatch() - { - PreInstall(); - // There are three components that implement INorf on this prefab - Container.Bind().FromComponentInNewPrefabResource(PathPrefix + "Norf").AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(3); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestWithAbstractSearchMultipleMatch() - { - PreInstall(); - // There are three components that implement INorf on this prefab - Container.Bind().FromComponentsInNewPrefabResource(PathPrefix + "Norf").AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(3); - FixtureUtil.AssertResolveCount(Container, 3); - yield break; - } - - [UnityTest] - public IEnumerator TestAbstractBindingConcreteSearch() - { - PreInstall(); - // Should ignore the Norf2 component on it - Container.Bind().To().FromComponentsInNewPrefabResource(PathPrefix + "Norf").AsCached().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertResolveCount(Container, 2); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleMatchFailure() - { - PreInstall(); - Container.Bind().FromComponentsInNewPrefabResource(PathPrefix + "Foo").AsSingle().NonLazy(); - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestCircularDependencies() - { - PreInstall(); - // Jim and Bob both depend on each other - Container.Bind(typeof(Jim), typeof(Bob)).FromComponentInNewPrefabResource(PathPrefix + "JimAndBob").AsSingle().NonLazy(); - - Container.BindInterfacesTo().AsSingle().NonLazy(); - - PostInstall(); - yield break; - } - - public class JimAndBobRunner : IInitializable - { - readonly Bob _bob; - readonly Jim _jim; - - public JimAndBobRunner(Jim jim, Bob bob) - { - _bob = bob; - _jim = jim; - } - - public void Initialize() - { - Assert.IsNotNull(_jim.Bob); - Assert.IsNotNull(_bob.Jim); - - Log.Info("Jim and bob successfully got the other reference"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs.meta deleted file mode 100644 index 239dfa5c8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 100b8c53531c9e049bd6ac742c979248 -timeCreated: 1476625195 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource.meta deleted file mode 100644 index 41dec47eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 77895b2c18397dd4eb7b086f557cfaa1 -folderAsset: yes -timeCreated: 1533537470 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs deleted file mode 100644 index 1c1ca9698..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs +++ /dev/null @@ -1,106 +0,0 @@ - -using System.Collections; -using System.Collections.Generic; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromResource : ZenjectIntegrationTestFixture - { - const string ResourcePath = "TestFromResource/TestTexture"; - const string ResourcePath2 = "TestFromResource/TestTexture2"; - - [UnityTest] - public IEnumerator TestBasic() - { - PreInstall(); - Container.Bind().FromResource(ResourcePath); - - Container.Bind().FromNewComponentOnNewGameObject().AsSingle().WithArguments(1).NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestTransient() - { - PreInstall(); - Container.Bind().FromResource(ResourcePath).AsTransient(); - Container.Bind().FromResource(ResourcePath); - Container.Bind().To().FromResource(ResourcePath); - - Container.Bind().FromNewComponentOnNewGameObject().AsSingle().WithArguments(3).NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestCached() - { - PreInstall(); - Container.Bind().FromResource(ResourcePath).AsSingle(); - - Container.Bind().FromNewComponentOnNewGameObject().AsSingle().WithArguments(1).NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestSingle() - { - PreInstall(); - Container.Bind(typeof(Texture), typeof(Texture)).To().FromResource(ResourcePath).AsSingle(); - - Container.Bind().FromNewComponentOnNewGameObject().AsSingle().WithArguments(2).NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestSingleWithError() - { - PreInstall(); - Container.Bind().FromResource(ResourcePath).AsSingle(); - Container.Bind().FromResource(ResourcePath2).AsSingle(); - - Assert.Throws(() => Container.FlushBindings()); - - PostInstall(); - yield break; - } - - public class Runner : MonoBehaviour - { - List _textures; - - [Inject] - public void Construct(List textures, int expectedAmount) - { - _textures = textures; - - Assert.IsEqual(textures.Count, expectedAmount); - } - - void OnGUI() - { - int top = 0; - - foreach (var tex in _textures) - { - var rect = new Rect(0, top, Screen.width * 0.5f, Screen.height * 0.5f); - - GUI.DrawTexture(rect, tex); - - top += 200; - } - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs.meta deleted file mode 100644 index 79a969d6d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromResource/TestFromResource.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: dea2fb7319188134c9049c249f465009 -timeCreated: 1476625641 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent.meta deleted file mode 100644 index 3f8b1ee40..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ac3824324711c3f489d292e1b03858b9 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs deleted file mode 100644 index 7b21d5f36..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs +++ /dev/null @@ -1,103 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestFromSiblingComponent : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestBasic() - { - PreInstall(); - Container.Bind().FromNewComponentOnNewGameObject().AsSingle().NonLazy(); - Container.Bind().FromNewComponentSibling(); - - PostInstall(); - - Assert.IsEqual(Container.Resolve().gameObject.GetComponents().Length, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestInvalidUse() - { - PreInstall(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromNewComponentSibling(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestBasic2() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("Test"); - - Container.Bind().FromNewComponentOn(gameObject).AsSingle().NonLazy(); - Container.Bind().FromNewComponentOn(gameObject).AsSingle().NonLazy(); - - Container.Bind().FromNewComponentSibling(); - - PostInstall(); - - var bar = Container.Resolve(); - var gorp = Container.Resolve(); - - Assert.IsEqual(bar.gameObject.GetComponents().Length, 1); - Assert.IsEqual(bar.Foo, gorp.Foo); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional() - { - var gameObject = new GameObject("Test"); - - PreInstall(); - - Container.Bind().FromNewComponentOn(gameObject).AsSingle().NonLazy(); - Container.Bind().FromComponentSibling(); - - PostInstall(); - - var qiv = Container.Resolve(); - Assert.IsNull(qiv.Foo); - yield break; - } - - public class Qux - { - public Qux(Foo foo) - { - } - } - - public class Foo : MonoBehaviour - { - } - - public class Bar : MonoBehaviour - { - [Inject] - public Foo Foo; - } - - public class Gorp : MonoBehaviour - { - [Inject] - public Foo Foo; - } - - public class Qiv : MonoBehaviour - { - [InjectOptional] - public Foo Foo; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs.meta deleted file mode 100644 index c672f3980..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSiblingComponent/TestFromSiblingComponent.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: eb7b9080f4910bd4bae9f726194b1c50 -timeCreated: 1476625795 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab.meta deleted file mode 100644 index 1d3bb26e2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 9ab8e28ca08241e41982482e00de08f0 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs deleted file mode 100644 index fa2627302..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs +++ /dev/null @@ -1,281 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.FromSubContainerPrefab; - -#pragma warning disable 649 - -namespace Zenject.Tests.Bindings -{ - public class TestFromSubContainerPrefab : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get { return FixtureUtil.GetPrefab("TestFromSubContainerPrefab/Foo"); } - } - - GameObject CircFooPrefab - { - get { return FixtureUtil.GetPrefab("TestFromSubContainerPrefab/CircFoo"); } - } - - GameObject FooPrefab2 - { - get { return FixtureUtil.GetPrefab("TestFromSubContainerPrefab/Foo2"); } - } - - void CommonInstall() - { - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - } - - [UnityTest] - public IEnumerator TestSelfSingle() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - [ValidateOnly] - public IEnumerator TestSelfSingleValidate() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - [ValidateOnly] - public IEnumerator TestSelfSingleValidateFails() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve() - .ByNewContextPrefab(FooPrefab2).AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfTransient() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfCached() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfSingleMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfCachedMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfTransientMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteSingle() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteTransient() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve() - .ByNewContextPrefab(FooPrefab).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteCached() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteSingleMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Bar), typeof(IFoo)).To(typeof(Foo), typeof(Bar)) - .FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteCachedMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfIdentifiersFails() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfIdentifiers() - { - PreInstall(); - CommonInstall(); - - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - Container.Bind().FromSubContainerResolve("gorp").ByNewContextPrefab(FooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestCircularDependency() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromNewComponentOnNewGameObject().AsSingle(); - - Container.Bind().FromSubContainerResolve() - .ByNewContextPrefab(CircFooPrefab).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs.meta deleted file mode 100644 index 7a597025d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefab/TestFromSubContainerPrefab.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bdaee535959c3024c889b3b486fa661a -timeCreated: 1476626071 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource.meta deleted file mode 100644 index af17d6630..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ecae311eb84afdb4e812a5c20367cb1e -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs deleted file mode 100644 index 68c06cc96..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs +++ /dev/null @@ -1,230 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; -using Zenject.Tests.Bindings.FromSubContainerPrefabResource; - -namespace Zenject.Tests.Bindings -{ - public class TestFromSubContainerPrefabResource : ZenjectIntegrationTestFixture - { - const string PathPrefix = "TestFromSubContainerPrefabResource/"; - const string FooResourcePath = PathPrefix + "FooSubContainer"; - - void CommonInstall() - { - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - } - - [UnityTest] - public IEnumerator TestTransientError() - { - PreInstall(); - CommonInstall(); - - // Validation should detect that it doesn't exist - Container.Bind().FromSubContainerResolve().ByNewContextPrefabResource(PathPrefix + "asdfasdfas").AsTransient().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfSingle() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfTransient() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfCached() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfSingleMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfCachedMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfTransientMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(2); - FixtureUtil.AssertComponentCount(2); - FixtureUtil.AssertComponentCount(2); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteSingle() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteTransient() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve() - .ByNewContextPrefabResource(FooResourcePath).AsTransient().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteCached() - { - PreInstall(); - CommonInstall(); - - Container.Bind().To().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteSingleMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(IFoo), typeof(Bar)).To(typeof(Foo), typeof(Bar)) - .FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestConcreteCachedMultipleContracts() - { - PreInstall(); - CommonInstall(); - - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertComponentCount(1); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfIdentifiersFails() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve().ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - public IEnumerator TestSelfIdentifiers() - { - PreInstall(); - CommonInstall(); - - Container.Bind().FromSubContainerResolve("gorp").ByNewContextPrefabResource(FooResourcePath).AsSingle().NonLazy(); - - PostInstall(); - - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs.meta deleted file mode 100644 index cf78a4bda..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromSubContainerPrefabResource/TestFromSubContainerPrefabResource.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 334541748134b72468ffe34ea80cf8f0 -timeCreated: 1476626323 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback.meta deleted file mode 100644 index 5da70b56b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 0f115948ffad7e54f8a47ea450e67581 -folderAsset: yes -timeCreated: 1535264071 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs deleted file mode 100644 index 083f86e35..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs +++ /dev/null @@ -1,224 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings.InstantiateCallback -{ - public class TestInstantiateCallback : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get { return GetPrefab("Foo"); } - } - - GameObject EmptyPrefab - { - get { return GetPrefab("Empty"); } - } - - GameObject GetPrefab(string name) - { - return FixtureUtil.GetPrefab(GetPrefabPath(name)); - } - - string GetPrefabPath(string name) - { - return "TestInstantiateCallback/{0}".Fmt(name); - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObject() - { - PreInstall(); - - Container.Bind().FromNewComponentOnNewGameObject() - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOn() - { - PreInstall(); - - var gameObject = new GameObject(); - - Container.Bind().FromNewComponentOn(gameObject) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOn2() - { - PreInstall(); - - var gameObject = new GameObject(); - - Container.Bind().FromNewComponentOn(ctx => gameObject) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewPrefab() - { - PreInstall(); - - Container.Bind().FromNewComponentOnNewPrefab(EmptyPrefab) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewPrefabResource() - { - PreInstall(); - - Container.Bind().FromNewComponentOnNewPrefabResource(GetPrefabPath("Empty")) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnRoot() - { - PreInstall(); - - Container.Bind().FromNewComponentOnRoot() - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - public class Bar : MonoBehaviour - { - [Inject] - public Foo Foo; - } - - [UnityTest] - public IEnumerator TestFromNewComponentSibling() - { - PreInstall(); - - var bar = new GameObject().AddComponent(); - - Container.QueueForInject(bar); - Container.Bind().FromNewComponentSibling() - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - Assert.IsEqual(bar.Foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefab() - { - PreInstall(); - - Container.Bind().FromComponentInNewPrefab(FooPrefab) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabResource() - { - PreInstall(); - - Container.Bind().FromComponentInNewPrefabResource(GetPrefabPath("Foo")) - .AsSingle().OnInstantiated((ctx, obj) => - { - Assert.That(obj.WasInjected); - obj.Value = "asdf"; - }); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - yield break; - } - - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs.meta deleted file mode 100644 index 223273e77..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestInstantiateCallback/TestInstantiateCallback.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: fe1c39f4b0d91954a937f1277fad2453 -timeCreated: 1535264071 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy.meta deleted file mode 100644 index d36ef2129..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: f49bebb41c308914d80eebda326f1e17 -folderAsset: yes -timeCreated: 1533537471 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs deleted file mode 100644 index 060d1d5f7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs +++ /dev/null @@ -1,145 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; - -namespace Zenject.Tests.Bindings -{ - public class TestLazy : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator Test1() - { - PreInstall(); - Bar.InstanceCount = 0; - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - PostInstall(); - - var foo = Container.Resolve(); - - Assert.IsEqual(Bar.InstanceCount, 0); - - foo.DoIt(); - - Assert.IsEqual(Bar.InstanceCount, 1); - yield break; - } - - [UnityTest] - public IEnumerator Test2() - { - PreInstall(); - Container.Bind().AsSingle().NonLazy(); - - PostInstall(); - - var foo = Container.Resolve(); - Assert.Throws(() => foo.DoIt()); - yield break; - } - - [UnityTest] - [ValidateOnly] - public IEnumerator Test3() - { - PreInstall(); - - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => PostInstall()); - yield break; - } - - [UnityTest] - [ValidateOnly] - public IEnumerator Test4() - { - PreInstall(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle(); - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional1() - { - PreInstall(); - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - PostInstall(); - - Assert.IsNotNull(Container.Resolve().Bar.Value); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional2() - { - PreInstall(); - Container.Bind().AsSingle(); - PostInstall(); - - Assert.IsNull(Container.Resolve().Bar.Value); - yield break; - } - - [UnityTest] - public IEnumerator TestOptional3() - { - PreInstall(); - Container.Bind().AsSingle(); - PostInstall(); - - var gorp = Container.Resolve(); - object temp; - Assert.Throws(() => temp = gorp.Bar.Value); - yield break; - } - - public class Bar - { - public static int InstanceCount; - - public Bar() - { - InstanceCount++; - } - - public void DoIt() - { - } - } - - public class Foo - { - readonly LazyInject _bar; - - public Foo(LazyInject bar) - { - _bar = bar; - } - - public void DoIt() - { - _bar.Value.DoIt(); - } - } - - public class Qux - { - [Inject(Optional = true)] - public LazyInject Bar; - } - - public class Gorp - { - public LazyInject Bar; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs.meta deleted file mode 100644 index 17c496ebd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestLazy/TestLazy.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1ce0b6eda7a924b40a99633734931bb9 -timeCreated: 1485556448 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories.meta deleted file mode 100644 index 3da085f72..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: e5e30fa1ac6a1d1408340b6fb61c9693 -folderAsset: yes -timeCreated: 1533537394 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory.meta deleted file mode 100644 index acda7aebf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: af8b779557d36924d820d239ab6ee944 -folderAsset: yes -timeCreated: 1476627232 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs deleted file mode 100644 index e30b18587..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs +++ /dev/null @@ -1,162 +0,0 @@ -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Factories.PrefabFactory; - -namespace Zenject.Tests.Factories -{ - public class TestPrefabFactory : ZenjectIntegrationTestFixture - { - string FooPrefabResourcePath - { - get { return "TestPrefabFactory/Foo"; } - } - - GameObject FooPrefab - { - get { return FixtureUtil.GetPrefab(FooPrefabResourcePath); } - } - - string Foo2PrefabResourcePath - { - get { return "TestPrefabFactory/Foo2"; } - } - - GameObject Foo2Prefab - { - get { return FixtureUtil.GetPrefab(Foo2PrefabResourcePath); } - } - - [UnityTest] - public IEnumerator Test1() - { - PreInstall(); - - Container.BindFactory().FromFactory>(); - Container.Bind().To().AsSingle().WithArguments(FooPrefab); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator Test2() - { - PreInstall(); - - Container.BindFactory().FromFactory>(); - Container.Bind().To().AsSingle().WithArguments(Foo2Prefab); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestResource1() - { - PreInstall(); - - Container.BindFactory().FromFactory>(); - Container.Bind().To().AsSingle().WithArguments(FooPrefabResourcePath); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestResource2() - { - PreInstall(); - - Container.BindFactory().FromFactory>(); - Container.Bind().To().AsSingle().WithArguments(Foo2PrefabResourcePath); - - PostInstall(); - yield break; - } - - public class Runner : IInitializable - { - readonly GameObject _prefab; - readonly Foo.Factory _fooFactory; - - public Runner( - Foo.Factory fooFactory, - GameObject prefab) - { - _prefab = prefab; - _fooFactory = fooFactory; - } - - public void Initialize() - { - var foo = _fooFactory.Create(_prefab); - - Assert.That(foo.WasInitialized); - } - } - - public class Runner2 : IInitializable - { - readonly GameObject _prefab; - readonly Foo2.Factory _fooFactory; - - public Runner2( - Foo2.Factory fooFactory, - GameObject prefab) - { - _prefab = prefab; - _fooFactory = fooFactory; - } - - public void Initialize() - { - var foo = _fooFactory.Create(_prefab, "asdf"); - - Assert.IsEqual(foo.Value, "asdf"); - } - } - - public class Runner3 : IInitializable - { - readonly string _prefabPath; - readonly Foo.Factory2 _fooFactory; - - public Runner3( - Foo.Factory2 fooFactory, - string prefabPath) - { - _prefabPath = prefabPath; - _fooFactory = fooFactory; - } - - public void Initialize() - { - var foo = _fooFactory.Create(_prefabPath); - Assert.That(foo.WasInitialized); - } - } - - public class Runner4 : IInitializable - { - readonly string _prefabPath; - readonly Foo2.Factory2 _fooFactory; - - public Runner4( - Foo2.Factory2 fooFactory, - string prefabPath) - { - _prefabPath = prefabPath; - _fooFactory = fooFactory; - } - - public void Initialize() - { - var foo = _fooFactory.Create(_prefabPath, "asdf"); - - Assert.IsEqual(foo.Value, "asdf"); - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs.meta deleted file mode 100644 index 3955078d4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/PrefabFactory/TestPrefabFactory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d68637dd8a89bba40b7d4506d09c1bad -timeCreated: 1476628483 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory.meta deleted file mode 100644 index 73d09f96f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: c021ba356ec385d469d715722ac7c4a7 -folderAsset: yes -timeCreated: 1476627237 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs deleted file mode 100644 index 6769504c1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs +++ /dev/null @@ -1,498 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Factories.BindFactory; - -namespace Zenject.Tests.Factories -{ - public class TestBindFactory : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get { return FixtureUtil.GetPrefab("TestBindFactory/Foo"); } - } - - GameObject CameraPrefab - { - get { return FixtureUtil.GetPrefab("TestBindFactory/Camera"); } - } - - GameObject FooSubContainerPrefab - { - get { return FixtureUtil.GetPrefab("TestBindFactory/FooSubContainer"); } - } - - [UnityTest] - public IEnumerator TestFromNewScriptableObjectResource() - { - PreInstall(); - Container.BindFactory() - .FromNewScriptableObjectResource("TestBindFactory/Bar"); - - PostInstall(); - - var factory = Container.Resolve(); - var bar = factory.Create(); - Assert.IsNotNull(bar); - Assert.IsNotEqual(bar, factory.Create()); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInHierarchy() - { - PreInstall(); - var foo = new GameObject().AddComponent(); - - Container.BindFactory().FromComponentInHierarchy(); - - PostInstall(); - - var factory = Container.Resolve(); - var foo2 = factory.Create(); - Assert.IsNotNull(foo2); - Assert.IsEqual(foo, foo2); - Assert.IsEqual(foo, factory.Create()); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInHierarchyErrors() - { - PreInstall(); - Container.BindFactory().FromComponentInHierarchy(); - - PostInstall(); - - var factory = Container.Resolve(); - - // zero matches - Assert.Throws(() => factory.Create()); - - new GameObject().AddComponent(); - - factory.Create(); - - new GameObject().AddComponent(); - - // Multiple is ok too to mirror unity's GetComponentsInChildren behaviour - factory.Create(); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOn() - { - PreInstall(); - var go = new GameObject(); - - Container.BindFactory().FromNewComponentOn(go); - - PostInstall(); - - var factory = Container.Resolve(); - - Assert.IsNull(go.GetComponent()); - var foo = factory.Create(); - Assert.IsNotNull(go.GetComponent()); - Assert.IsEqual(go.GetComponent(), foo); - - var foo2 = factory.Create(); - - Assert.IsNotEqual(foo2, foo); - - var allFoos = go.GetComponents(); - Assert.IsEqual(allFoos.Length, 2); - Assert.IsEqual(allFoos[0], foo); - Assert.IsEqual(allFoos[1], foo2); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObject() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectComponent() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectComponentFailure() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - PostInstall(); - - Assert.Throws(() => Container.Resolve().Create("asdf")); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectWithParamsSuccess() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - PostInstall(); - - Container.Resolve().Create(5); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectWithParamsFailure() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - PostInstall(); - - Assert.Throws(() => Container.Resolve().Create()); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectConcrete() - { - PreInstall(); - Container.BindFactory().To().FromNewComponentOnNewGameObject(); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnSelf() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().FromNewComponentOn(gameObject); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnSelfFail() - { - PreInstall(); - Assert.Throws(() => Container.BindFactory().FromNewComponentOn((GameObject)null)); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnConcrete() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().To().FromNewComponentOn(gameObject); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefab() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInPrefabComponent() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefab(CameraPrefab).WithGameObjectName("asdf"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabSelfFail() - { - PreInstall(); - // Foo3 is not on the prefab - Container.BindFactory().FromComponentInNewPrefab(FooPrefab); - - PostInstall(); - - Assert.Throws(() => FixtureUtil.CallFactoryCreateMethod(Container)); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabConcrete() - { - PreInstall(); - Container.BindFactory().To().FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToResourceSelf() - { - PreInstall(); - Container.BindFactory>() - .FromResource("TestBindFactory/TestTexture").NonLazy(); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod>(Container); - yield break; - } - - [UnityTest] - public IEnumerator TestToResource() - { - PreInstall(); - Container.BindFactory>() - .To().FromResource("TestBindFactory/TestTexture").NonLazy(); - - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefabResource("TestBindFactory/Foo").WithGameObjectName("asdf"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory().To().FromComponentInNewPrefabResource("TestBindFactory/Foo").WithGameObjectName("asdf"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabSelf() - { - PreInstall(); - Container.BindFactory().FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory() - .FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactory/FooSubContainer"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactory/FooSubContainer"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransformGroup() - { - PreInstall(); - Container.BindFactory() - .FromNewComponentOnNewGameObject().UnderTransformGroup("Foos"); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - var child = GameObject.Find("Foos").transform.GetChild(0); - - Assert.IsNotNull(child.GetComponent()); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransform() - { - PreInstall(); - var tempGameObject = new GameObject("Foo"); - - Container.BindFactory().FromNewComponentOnNewGameObject(). - UnderTransform(tempGameObject.transform); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - Assert.IsNotNull(tempGameObject.transform.GetChild(0).GetComponent()); - yield break; - } - - [UnityTest] - public IEnumerator TestUnderTransformGetter() - { - PreInstall(); - var tempGameObject = new GameObject("Foo"); - - Container.BindFactory().FromNewComponentOnNewGameObject() - .UnderTransform(context => tempGameObject.transform); - - PostInstall(); - - FixtureUtil.CallFactoryCreateMethod(Container); - - Assert.IsNotNull(tempGameObject.transform.GetChild(0).GetComponent()); - yield break; - } - - public class CameraFactory2 : PlaceholderFactory - { - } - - public class CameraFactory : PlaceholderFactory - { - } - - public class Foo3 : MonoBehaviour - { - public class Factory : PlaceholderFactory - { - } - } - - public class Foo2 : MonoBehaviour - { - [Inject] - public int Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - - public class Factory2 : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs.meta deleted file mode 100644 index 3d780c9a8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactory/TestBindFactory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 27adf673c597fc3409c6f978c63ab887 -timeCreated: 1476628483 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive.meta deleted file mode 100644 index 3fe418311..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 99205e310884d9d4b9039013bf5eaaee -folderAsset: yes -timeCreated: 1476627243 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs deleted file mode 100644 index ab2fde72a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs +++ /dev/null @@ -1,250 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Factories.BindFactoryFive; - -namespace Zenject.Tests.Factories -{ - public class TestBindFactoryFive : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get - { - return FixtureUtil.GetPrefab("TestBindFactoryFive/Foo"); - } - } - - GameObject FooSubContainerPrefab - { - get - { - return FixtureUtil.GetPrefab("TestBindFactoryFive/FooSubContainer"); - } - } - - [UnityTest] - public IEnumerator TestToGameObjectSelf() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToGameObjectConcrete() - { - PreInstall(); - Container.BindFactory().To().FromNewComponentOnNewGameObject(); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToMonoBehaviourSelf() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().FromNewComponentOn(gameObject); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToMonoBehaviourConcrete() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().To().FromNewComponentOn(gameObject); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabSelf() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabConcrete() - { - PreInstall(); - Container.BindFactory().To().FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefabResource("TestBindFactoryFive/Foo").WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromComponentInNewPrefabResource("TestBindFactoryFive/Foo").WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabSelf() - { - PreInstall(); - Container.BindFactory() - .FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory().FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactoryFive/FooSubContainer"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestToSubContainerPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactoryFive/FooSubContainer"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - void AddFactoryUser() - where TValue : IFoo - where TFactory : PlaceholderFactory - { - Container.Bind() - .To>().AsSingle(); - - Container.BindExecutionOrder>(-100); - } - - public class FooFactoryTester : IInitializable - where TFactory : PlaceholderFactory - where TValue : IFoo - { - readonly TFactory _factory; - - public FooFactoryTester(TFactory factory) - { - _factory = factory; - } - - public void Initialize() - { - Assert.IsEqual(_factory.Create(0.15, 0, 2.4f, "zxcv", 'z').Value, "zxcv"); - - Log.Info("Factory created foo successfully"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs.meta deleted file mode 100644 index 96c32e0d9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryFive/TestBindFactoryFive.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 572457f9104bd1e4b9b08350f69f5041 -timeCreated: 1476628483 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne.meta deleted file mode 100644 index ad7f16e54..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 26299dac98af5b84483bf41c4b2897ca -folderAsset: yes -timeCreated: 1476627250 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs deleted file mode 100644 index a8d52522f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs +++ /dev/null @@ -1,298 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Factories.BindFactoryOne; - -namespace Zenject.Tests.Factories -{ - public class TestBindFactoryOne : ZenjectIntegrationTestFixture - { - GameObject FooPrefab - { - get - { - return FixtureUtil.GetPrefab("TestBindFactoryOne/Foo"); - } - } - - GameObject FooSubContainerPrefab - { - get - { - return FixtureUtil.GetPrefab("TestBindFactoryOne/FooSubContainer"); - } - } - - [UnityTest] - public IEnumerator TestFromNewComponentOn() - { - PreInstall(); - var go = new GameObject(); - - Container.BindFactory().FromNewComponentOn(go); - - PostInstall(); - - var factory = Container.Resolve(); - - Assert.IsNull(go.GetComponent()); - var foo = factory.Create("asdf"); - Assert.IsEqual(foo.Value, "asdf"); - Assert.IsNotNull(go.GetComponent()); - Assert.IsEqual(go.GetComponent(), foo); - - var foo2 = factory.Create("zxcv"); - - Assert.IsNotEqual(foo2, foo); - - var allFoos = go.GetComponents(); - Assert.IsEqual(allFoos.Length, 2); - Assert.IsEqual(allFoos[0], foo); - Assert.IsEqual(allFoos[1], foo2); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewScriptableObjectResource() - { - PreInstall(); - Container.BindFactory() - .FromNewScriptableObjectResource("TestBindFactoryOne/Bar"); - - PostInstall(); - - var factory = Container.Resolve(); - var bar = factory.Create("asdf"); - Assert.IsNotNull(bar); - Assert.IsEqual(bar.Value, "asdf"); - Assert.IsNotEqual(bar, factory.Create("zxcv")); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectSelf() - { - PreInstall(); - Container.BindFactory().FromNewComponentOnNewGameObject(); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectConcrete() - { - PreInstall(); - Container.BindFactory().To().FromNewComponentOnNewGameObject(); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnSelf() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().FromNewComponentOn(gameObject); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnConcrete() - { - PreInstall(); - var gameObject = Container.CreateEmptyGameObject("foo"); - - Container.BindFactory().To().FromNewComponentOn(gameObject); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabSelf() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabConcrete() - { - PreInstall(); - Container.BindFactory().To() - .FromComponentInNewPrefab(FooPrefab).WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory().FromComponentInNewPrefabResource("TestBindFactoryOne/Foo").WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory().To() - .FromComponentInNewPrefabResource("TestBindFactoryOne/Foo").WithGameObjectName("asdf"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromSubContainerResolveByNewPrefabSelf() - { - PreInstall(); - Container.BindFactory() - .FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromSubContainerResolveByNewPrefabConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefab(FooSubContainerPrefab); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromSubContainerResolveByNewPrefabResourceSelf() - { - PreInstall(); - Container.BindFactory() - .FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactoryOne/FooSubContainer"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromSubContainerResolveByNewPrefabResourceConcrete() - { - PreInstall(); - Container.BindFactory() - .To().FromSubContainerResolve().ByNewContextPrefabResource("TestBindFactoryOne/FooSubContainer"); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - void AddFactoryUser() - where TValue : IFoo - where TFactory : PlaceholderFactory - { - Container.Bind() - .To>().AsSingle(); - - Container.BindExecutionOrder>(-100); - } - - public class FooFactoryTester : IInitializable - where TFactory : PlaceholderFactory - where TValue : IFoo - { - readonly TFactory _factory; - - public FooFactoryTester(TFactory factory) - { - _factory = factory; - } - - public void Initialize() - { - Assert.IsEqual(_factory.Create("asdf").Value, "asdf"); - - Log.Info("Factory created foo successfully"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs.meta deleted file mode 100644 index 6e4009e60..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOne.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 07b8699c6cfb35041acbf91f227fe7d4 -timeCreated: 1476628483 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs deleted file mode 100644 index 5ba7a6fd2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs +++ /dev/null @@ -1,163 +0,0 @@ -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject.Tests.Factories.BindFactoryOne; - -namespace Zenject.Tests.Factories -{ - public class TestBindFactoryOneWithArguments : ZenjectIntegrationTestFixture - { - private const string ArgumentValue = "asdf"; - - GameObject FooPrefab - { - get - { - return FixtureUtil.GetPrefab("TestBindFactoryOne/Foo"); - } - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectSelf() - { - PreInstall(); - Container.BindIFactory() - .FromNewComponentOnNewGameObject() - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromNewComponentOnNewGameObjectConcrete() - { - PreInstall(); - Container.BindIFactory() - .To() - .FromNewComponentOnNewGameObject() - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabSelf() - { - PreInstall(); - Container.BindIFactory() - .FromComponentInNewPrefab(FooPrefab) - .WithGameObjectName("asdf") - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabConcrete() - { - PreInstall(); - Container.BindIFactory() - .To() - .FromComponentInNewPrefab(FooPrefab) - .WithGameObjectName("asdf") - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabResourceSelf() - { - PreInstall(); - Container.BindIFactory() - .FromComponentInNewPrefabResource("TestBindFactoryOne/Foo") - .WithGameObjectName("asdf") - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - [UnityTest] - public IEnumerator TestFromComponentInNewPrefabResourceConcrete() - { - PreInstall(); - Container.BindIFactory().To() - .FromComponentInNewPrefabResource("TestBindFactoryOne/Foo") - .WithGameObjectName("asdf") - .WithArguments(ArgumentValue); - - AddFactoryUser(); - - PostInstall(); - - FixtureUtil.AssertComponentCount(1); - FixtureUtil.AssertNumGameObjects(1); - FixtureUtil.AssertNumGameObjectsWithName("asdf", 1); - yield break; - } - - // Note that unlike the TestBindFactory tests, WithArguments still doesn't work nicely with subcontainers... - - void AddFactoryUser() - where TValue : IFoo - { - Container.Bind() - .To>().AsSingle(); - - Container.BindExecutionOrder>(-100); - } - - public class FooFactoryTester : IInitializable - where TValue : IFoo - { - readonly IFactory _factory; - - public FooFactoryTester(IFactory factory) - { - _factory = factory; - } - - public void Initialize() - { - Assert.IsEqual(_factory.Create().Value, ArgumentValue); - - Log.Info("Factory created foo successfully"); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs.meta deleted file mode 100644 index 3ad755a56..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestBindFactoryOne/TestBindFactoryOneWithArguments.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 94b7f15ee7704375a72da83287e0a7b1 -timeCreated: 1604660417 \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools.meta deleted file mode 100644 index 596b9c904..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 0cf5d221a15233c4a96f91df1d41379e -folderAsset: yes -timeCreated: 1506454125 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs deleted file mode 100644 index 4d07307a9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs +++ /dev/null @@ -1,145 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; - -#pragma warning disable 219 - -namespace Zenject.Tests.Bindings -{ - public class TestMemoryPool1 : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestFactoryProperties() - { - PreInstall(); - Container.BindMemoryPool(); - - PostInstall(); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - var foo = pool.Spawn("asdf"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo.ResetCount, 1); - Assert.IsEqual(foo.Value, "asdf"); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(foo.ResetCount, 1); - - foo = pool.Spawn("zxcv"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo.ResetCount, 2); - Assert.IsEqual(foo.Value, "zxcv"); - - var foo2 = pool.Spawn("qwer"); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo2.ResetCount, 1); - Assert.IsEqual(foo2.Value, "qwer"); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(foo.ResetCount, 2); - - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - - pool.Spawn("zxcv"); - pool.Spawn("bxzc"); - pool.Spawn("bxzc"); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 3); - Assert.IsEqual(pool.NumInactive, 0); - yield break; - } - - class Foo - { - public string Value - { - get; - private set; - } - - public int ResetCount - { - get; private set; - } - - public class Pool : MemoryPool - { - protected override void Reinitialize(string value, Foo foo) - { - foo.Value = value; - foo.ResetCount++; - } - } - } - - [UnityTest] - public IEnumerator TestAbstractMemoryPoolValidate() - { - TestAbstractMemoryPoolInternal(); - yield break; - } - - [UnityTest] - public IEnumerator TestAbstractMemoryPool() - { - TestAbstractMemoryPoolInternal(); - - var pool = Container.Resolve(); - - var foo = pool.Spawn(5); - - Assert.IsEqual(foo.GetType(), typeof(Bar)); - yield break; - } - - void TestAbstractMemoryPoolInternal() - { - PreInstall(); - Container.BindMemoryPool() - .WithInitialSize(3).To().NonLazy(); - - PostInstall(); - } - - public interface IBar - { - } - - public class Bar : IBar - { - } - - public class BarPool : MemoryPool - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs.meta deleted file mode 100644 index 02063126e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Factories/TestMemoryPools/TestMemoryPool1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f50a5f22f2c3e034d9e90b4244a3e412 -timeCreated: 1506454125 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers.meta deleted file mode 100644 index 929488134..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 12c03aec56b42a246bcd063539109901 -folderAsset: yes -timeCreated: 1533537397 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers.meta deleted file mode 100644 index 75f90fe7e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4592ef76d02fb2741b07d49c2b318cd8 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs deleted file mode 100644 index 6402c69a5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs +++ /dev/null @@ -1,148 +0,0 @@ -using System.Collections; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject; -using Zenject.Tests; -using Zenject.Tests.Installers.CompositeMonoInstallers; - -namespace Zenject.Tests.Installers -{ - public class TestCompositeMonoInstallers : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestZeroParameters() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestZeroParametersDeep() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestOneParameter() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoBarInstaller", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite mono installer blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestOneParameterDeep() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/BarInstaller/TestCompositeMonoDeepBarInstaller1", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite mono installer blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeParameters() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoQuxInstaller", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite mono installer string"); - Assert.IsEqual(Container.Resolve(), 23.45f); - Assert.IsEqual(Container.Resolve(), 7890); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeParametersDeep() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/QuxInstaller/TestCompositeMonoDeepQuxInstaller1", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite mono installer string"); - Assert.IsEqual(Container.Resolve(), 23.45f); - Assert.IsEqual(Container.Resolve(), 7890); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleInstallers() - { - PreInstall(); - FooInjecteeInstaller.InstallFromResource("TestCompositeMonoInstallers/FooInjecteeInstaller/FooInjecteeInstaller", Container); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleInstallersDeep() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInjecteeInstaller/TestCompositeMonoFooInjecteeInstaller", Container); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestDuplicateInstallers() - { - PreInstall(); - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoFooInstaller", Container); - Assert.Throws(() => - { - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/FooInstaller/TestCompositeMonoDeepFooInstaller1", Container); - }); - PostInstall(); - - yield break; - } - - [UnityTest] - public IEnumerator TestAssertWithCircularReference() - { - PreInstall(); - - Assert.Throws(() => - { - InstallCompositeMonoInstallerFromResource("TestCompositeMonoInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeMonoInstaller", Container); - }); - - PostInstall(); - - yield break; - } - - // An installation method for "CompositeMonoInstaller". - // MonoInstaller.InstallFromResource uses "GetComponentsInChildren", so it can't be used for "CompositeMonoInstaller" if the prefab has multiple "CompositeMonoInstaller". - public static void InstallCompositeMonoInstallerFromResource(string resourcePath, DiContainer container) - { - var installerPrefab = Resources.Load(resourcePath); - var installer = GameObject.Instantiate(installerPrefab); - container.Inject(installer); - installer.InstallBindings(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs.meta deleted file mode 100644 index 5c1b1195e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeMonoInstallers/TestCompositeMonoInstallers.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4e77b29df32bac44b8c6d0fd6d04ab4c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers.meta deleted file mode 100644 index b4ea3e461..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2aa39eb12def8f648ab252090ba2669f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs deleted file mode 100644 index 33ff745cf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; -using Zenject; -using Zenject.Tests; -using Zenject.Tests.Installers.CompositeScriptableObjectInstallers; - -namespace Zenject.Tests.Installers -{ - public class TestCompositeScriptableObjectInstallers : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestZeroParameters() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestZeroParametersDeep() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestOneParameter() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectBarInstaller", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite scriptable object installer blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestOneParameterDeep() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/BarInstaller/TestCompositeScriptableObjectDeepBarInstaller1", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite scriptable object installer blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeParameters() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectQuxInstaller", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite scriptable object installer string"); - Assert.IsEqual(Container.Resolve(), 1.234f); - Assert.IsEqual(Container.Resolve(), 5678); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeParametersDeep() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/QuxInstaller/TestCompositeScriptableObjectDeepQuxInstaller1", Container); - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "composite scriptable object installer string"); - Assert.IsEqual(Container.Resolve(), 1.234f); - Assert.IsEqual(Container.Resolve(), 5678); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleInstallers() - { - PreInstall(); - FooInjecteeInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/FooInjecteeInstaller", Container); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestMultipleInstallersDeep() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInjecteeInstaller/TestCompositeSOFooInjecteeInstaller", Container); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectFooInstaller", Container); - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestDuplicateInstallers() - { - PreInstall(); - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller1", Container); - Assert.Throws(() => - { - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/FooInstaller/TestCompositeScriptableObjectDeepFooInstaller2", Container); - }); - PostInstall(); - - yield break; - } - - [UnityTest] - public IEnumerator TestAssertWithCircularReference() - { - PreInstall(); - - Assert.Throws(() => - { - CompositeScriptableObjectInstaller.InstallFromResource("TestCompositeScriptableObjectInstallers/CircularReferenceCompositeInstaller/CircularReferenceCompositeScriptableObjectInstaller", Container); - }); - - PostInstall(); - - yield break; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs.meta deleted file mode 100644 index 3e96a3569..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestCompositeScriptableObjectInstallers/TestCompositeScriptableObjectInstallers.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 49a3bdf513d61ec4e8e03365f61fb576 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers.meta deleted file mode 100644 index b811ece08..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: fa8246ebe523f444d8a36e1473a69c9f -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs deleted file mode 100644 index 8dd9e199f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs +++ /dev/null @@ -1,48 +0,0 @@ - -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(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestOneArg() - { - PreInstall(); - BarInstaller.Install(Container, "blurg"); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeArgs() - { - PreInstall(); - QuxInstaller.Install(Container, "blurg", 2.0f, 1); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs.meta deleted file mode 100644 index e3d3aa5c0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestInstallers/TestInstallers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 32558f6368b08f645928a4a03327df55 -timeCreated: 1476629271 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers.meta deleted file mode 100644 index 18dc0d0b1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ce19e0da982ee004ab1ac04ad4ee376a -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs deleted file mode 100644 index 320ad3d9d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs +++ /dev/null @@ -1,57 +0,0 @@ - -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(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestOneArg() - { - PreInstall(); - BarInstaller.InstallFromResource("TestMonoInstallers/BarInstaller", Container, "blurg"); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeArgs() - { - PreInstall(); - QuxInstaller.InstallFromResource("TestMonoInstallers/QuxInstaller", Container, "blurg", 2.0f, 1); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs.meta deleted file mode 100644 index 6105004b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestMonoInstallers/TestMonoInstallers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 93f2c1be16a3dce4a8a498951113458f -timeCreated: 1476629272 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers.meta deleted file mode 100644 index a8a7e9f5e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 2668028b00be0f74bb1a41abc9199438 -folderAsset: yes -timeCreated: 1476629271 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs deleted file mode 100644 index 683a5ca21..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs +++ /dev/null @@ -1,57 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; -using Zenject.Tests.Installers.ScriptableObjectInstallers; - -namespace Zenject.Tests.Installers -{ - public class TestScriptableObjectInstallers : ZenjectIntegrationTestFixture - { - [UnityTest] - public IEnumerator TestBadResourcePath() - { - PreInstall(); - Assert.Throws(() => FooInstaller.InstallFromResource("TestScriptableObjectInstallers/SDFSDFSDF", Container)); - PostInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestZeroArgs() - { - PreInstall(); - FooInstaller.InstallFromResource("TestScriptableObjectInstallers/FooInstaller", Container); - - PostInstall(); - - FixtureUtil.AssertResolveCount(Container, 1); - yield break; - } - - [UnityTest] - public IEnumerator TestOneArg() - { - PreInstall(); - BarInstaller.InstallFromResource("TestScriptableObjectInstallers/BarInstaller", Container, "blurg"); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - - [UnityTest] - public IEnumerator TestThreeArgs() - { - PreInstall(); - QuxInstaller.InstallFromResource("TestScriptableObjectInstallers/QuxInstaller", Container, "blurg", 2.0f, 1); - - PostInstall(); - - Assert.IsEqual(Container.Resolve(), "blurg"); - yield break; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs.meta deleted file mode 100644 index 14a59ca55..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Installers/TestScriptableObjectInstallers/TestScriptableObjectInstallers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1e5c2b8474b1ca34ba877a52ba18d05f -timeCreated: 1476629271 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester.meta deleted file mode 100644 index b17abc6c7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b97ab04110b7d5a4ea3f45c3acf61671 -folderAsset: yes -timeCreated: 1533537796 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs deleted file mode 100644 index 70c10a7bf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; - -namespace Zenject.Tests -{ - public class TestIntegrationTest : ZenjectIntegrationTestFixture - { - public class Foo : IInitializable, IDisposable - { - public static bool WasDisposed - { - get; set; - } - - public static bool WasInitialized - { - get; set; - } - - public void Initialize() - { - WasInitialized = true; - } - - public void Dispose() - { - WasDisposed = true; - } - } - - [UnityTest] - public IEnumerator TestRun() - { - PreInstall(); - - Foo.WasDisposed = false; - Foo.WasInitialized = false; - - Container.BindInterfacesTo().AsSingle(); - - Assert.That(!Foo.WasInitialized); - - PostInstall(); - - yield return null; - - Assert.That(Foo.WasInitialized); - - yield return DestroyEverything(); - - Assert.That(Foo.WasDisposed); - } - - [UnityTest] - public IEnumerator TestSkipInstall() - { - SkipInstall(); - yield break; - } - - [UnityTest] - public IEnumerator TestProjectContextDestroyed() - { - Assert.That(!ProjectContext.HasInstance); - SkipInstall(); - yield return null; - Assert.That(ProjectContext.HasInstance); - yield return DestroyEverything(); - Assert.That(!ProjectContext.HasInstance); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs.meta deleted file mode 100644 index 8043b6cf9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/IntegrationTestTester/TestIntegrationTest.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 056c7f636d28cd740aa4f1506db0593d -timeCreated: 1506428837 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc.meta deleted file mode 100644 index f98a84c33..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 4e9bd8259ac41484a89d4c3ded0e11f4 -folderAsset: yes -timeCreated: 1533537402 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject.meta deleted file mode 100644 index 52645204f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b3f01a7aab70acf449c179f9d22e6ff5 -folderAsset: yes -timeCreated: 1527865953 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs deleted file mode 100644 index 7bf70860d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs +++ /dev/null @@ -1,43 +0,0 @@ - -using System.Collections; -using ModestTree; -using UnityEngine.TestTools; - -namespace Zenject.Tests.TestAnimationStateBehaviourInject -{ - public class TestAnimationStateBehaviourInject : ZenjectIntegrationTestFixture - { - const string ResourcePrefix = "TestAnimationStateBehaviourInject/"; - - [UnityTest] - public IEnumerator Test1() - { - PreInstall(); - var prefab = FixtureUtil.GetPrefab(ResourcePrefix + "Foo"); - - StateBehaviour1.OnStateEnterCalls = 0; - - Container.InstantiatePrefab(prefab); - Container.BindInterfacesAndSelfTo().AsSingle(); - PostInstall(); - - yield return null; - - Assert.IsEqual(StateBehaviour1.OnStateEnterCalls, 1); - } - - public class Foo : IInitializable - { - public bool HasInitialized - { - get; private set; - } - - public void Initialize() - { - HasInitialized = true; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs.meta deleted file mode 100644 index bad8ad215..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestAnimationStateBehaviourInject/TestAnimationStateBehaviourInject.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: f80ffddc2b920e54f85483d37863d1ba -timeCreated: 1527866041 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration.meta deleted file mode 100644 index 82c35e903..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 503a300139444eda80c6549ec29b3b20 -timeCreated: 1587924687 \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs deleted file mode 100644 index d7dc17036..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Threading.Tasks; -using Zenject; - -namespace Zenject.Tests.TestAnimationStateBehaviourInject -{ - public class DelayedInitializeKernel : BaseMonoKernelDecorator - { - public async override void Initialize() - { - await Task.Delay(5000); - DecoratedMonoKernel.Initialize(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs.meta deleted file mode 100644 index 1ee2d1185..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/DelayedInitializeKernel.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 983f0bc44f6541bfab062ceec72231d3 -timeCreated: 1587867811 \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs deleted file mode 100644 index d03fa0437..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs +++ /dev/null @@ -1,14 +0,0 @@ -using UnityEngine; -using Zenject; - -namespace Zenject.Tests.TestAnimationStateBehaviourInject -{ - public class KernelDecoratorInstaller : Installer - { - public override void InstallBindings() - { - Container.BindInterfacesTo().AsCached(); - Container.Decorate().With(); - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs.meta deleted file mode 100644 index 0741345d2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/KernelDecoratorInstaller.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 71d4a84946422ad49ae352537c257aed -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs deleted file mode 100644 index 28ac808be..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using ModestTree.Util; -using NUnit.Framework; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject; -using Zenject.Tests.TestAnimationStateBehaviourInject; - -namespace Zenject.Tests.Misc.TestMonoKernelDecoration -{ - public class TestMonoKernelDecoration : ZenjectIntegrationTestFixture - { - - [UnityTest] - public IEnumerator TestDelayedMonoKernelDecorator() - { - PreInstall(); - - Container.Rebind().To().AsCached(); - KernelDecoratorInstaller.Install(Container); - PostInstall(); - - yield return new WaitForSeconds(1.0f); - - InitializableManagerSpy initializableManager = SceneContext.Container.Resolve() as InitializableManagerSpy; - var initializedBeforeDelay = initializableManager.IsInitialized; - - yield return new WaitForSeconds(6.0f); - var initializedAfterDelay = initializableManager.IsInitialized; - - Assert.IsFalse(initializedBeforeDelay); - Assert.IsTrue(initializedAfterDelay); - } - - private class InitializableManagerSpy : InitializableManager - { - - public InitializableManagerSpy(List initializables, List> priorities) : base(initializables, priorities){} - - public bool IsInitialized => _hasInitialized; - } - - - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs.meta deleted file mode 100644 index 68dd052df..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestMonoKernelDecoration/TestMonoKernelDecoration.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 166ad9cc65d872b48badf6da39e4a31c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter.meta deleted file mode 100644 index 29e39e090..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: e6a5ac4ad92f5574e8f348463d68fa13 -folderAsset: yes -timeCreated: 1528396585 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs deleted file mode 100644 index ee24216d0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs +++ /dev/null @@ -1,133 +0,0 @@ -using System.Collections; -using System.Linq; -using ModestTree; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests.AutoInjecter -{ - public class TestZenAutoInjecter : ZenjectIntegrationTestFixture - { - GameObject GetPrefab(string name) - { - return FixtureUtil.GetPrefab("TestZenAutoInjecter/{0}".Fmt(name)); - } - - [UnityTest] - public IEnumerator TestAddComponent() - { - PreInstall(); - - Container.Bind().AsSingle(); - - PostInstall(); - - var bar = new GameObject("bar").AddComponent(); - - Assert.That(!bar.ConstructCalled); - Assert.IsNull(bar.Foo); - - bar.gameObject.AddComponent(); - - Assert.IsEqual(bar.Foo, Container.Resolve()); - yield break; - } - - [UnityTest] - public IEnumerator TestInstantiatePrefab() - { - PreInstall(); - - Container.Bind().AsSingle(); - - PostInstall(); - yield return null; - - var barGameObject = GameObject.Instantiate(GetPrefab("Bar")); - var bar = barGameObject.GetComponentInChildren(); - - Assert.IsEqual(bar.Foo, Container.Resolve()); - Assert.That(bar.ConstructCalled); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithSearchContainerSourceInGameObjectContext() - { - PreInstall(); - Container.Bind().FromSubContainerResolve().ByNewContextPrefab(GetPrefab("GorpContext")).AsSingle(); - PostInstall(); - yield return null; - - var gorp = Container.Resolve(); - - var qux = GameObject.Instantiate( - GetPrefab("QuxSearch"), Vector3.zero, Quaternion.identity, gorp.transform) - .GetComponentInChildren(); - - Assert.IsEqual(qux.Container, gorp.Container); - Assert.IsEqual(qux.Container.ParentContainers.Single(), Container); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithSearchContainerSourceInScene() - { - SkipInstall(); - yield return null; - - var qux = GameObject.Instantiate(GetPrefab("QuxSearch")).GetComponentInChildren(); - - Assert.IsEqual(qux.Container, Container); - Assert.IsEqual(qux.Container, Container.Resolve().Container); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithSearchContainerSourceInDontDestroyOnLoad() - { - SkipInstall(); - yield return null; - - var qux = GameObject.Instantiate( - GetPrefab("QuxSearch"), Vector3.zero, Quaternion.identity, ProjectContext.Instance.transform) - .GetComponentInChildren(); - - Assert.IsEqual(qux.Container, ProjectContext.Instance.Container); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithProjectContainerSourceInScene() - { - SkipInstall(); - yield return null; - - var qux = GameObject.Instantiate(GetPrefab("QuxProject")).GetComponentInChildren(); - - Assert.IsEqual(qux.Container, ProjectContext.Instance.Container); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithSceneContainerSourceInScene() - { - SkipInstall(); - yield return null; - - var qux = GameObject.Instantiate(GetPrefab("QuxScene")).GetComponentInChildren(); - - Assert.IsEqual(qux.Container, Container); - Assert.IsEqual(qux.Container, Container.Resolve().Container); - } - - [UnityTest] - public IEnumerator TestInstantiatePrefabWithSceneContainerSourceInProject() - { - SkipInstall(); - yield return null; - - var qux = GameObject.Instantiate( - GetPrefab("QuxScene"), Vector3.zero, Quaternion.identity, - ProjectContext.Instance.transform).GetComponentInChildren(); - - Assert.IsEqual(qux.Container, ProjectContext.Instance.Container); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs.meta deleted file mode 100644 index 48d901046..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Misc/TestZenAutoInjecter/TestZenAutoInjecter.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 5a70553092a2adf41a33f6f3fc9019b8 -timeCreated: 1528431963 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests.meta deleted file mode 100644 index dff1e9b2f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3f3dc32955683614bbd38701bbd38e48 -folderAsset: yes -timeCreated: 1533537410 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs deleted file mode 100644 index 5cd52b351..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections; -using UnityEngine; -using UnityEngine.TestTools; - -namespace Zenject.Tests -{ - public class TestSceneContextEvents : SceneTestFixture - { - [UnityTest] - public IEnumerator TestScene() - { - yield return LoadScene("TestSceneContextEvents"); - yield return new WaitForSeconds(1.0f); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs.meta deleted file mode 100644 index dc8b4f669..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/SceneTests/TestSceneContextEvents.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: d86cf7d476433b44a80c483ab6396e27 -timeCreated: 1533537917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions.meta deleted file mode 100644 index daf01f1b2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a9c223bf11b83cf4b89b9925f98de4b3 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs deleted file mode 100644 index 4957f37f9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs +++ /dev/null @@ -1,454 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using UnityEngine; -using UnityEngine.TestTools; -using Zenject; - -namespace Zenject.Tests.Installers -{ - public class TestCompositeInstallerExtensions - { - TestInstaller _installer1; - - TestCompositeInstaller _compositeInstaller1; - TestCompositeInstaller _compositeInstaller2; - - TestCompositeInstaller _circularRefCompositeInstaller1; - - List _parentInstallers1; - - TestInstaller _dummyInstaller1; - TestInstaller _dummyInstaller2; - TestInstaller _dummyInstaller3; - - TestCompositeInstaller _dummyCompositeInstaller1; - - [SetUp] - public void SetUp() - { - _installer1 = new TestInstaller(); - - _compositeInstaller1 = new TestCompositeInstaller - { - _leafInstallers = new List() - }; - _compositeInstaller2 = new TestCompositeInstaller - { - _leafInstallers = new List - { - _compositeInstaller1, - }, - }; - - _circularRefCompositeInstaller1 = new TestCompositeInstaller - { - _leafInstallers = new List() - }; - _circularRefCompositeInstaller1._leafInstallers.Add(_circularRefCompositeInstaller1); - - _parentInstallers1 = new List - { - _compositeInstaller1, - }; - - _dummyInstaller1 = new TestInstaller(); - _dummyInstaller2 = new TestInstaller(); - _dummyInstaller3 = new TestInstaller(); - - _dummyCompositeInstaller1 = new TestCompositeInstaller - { - _leafInstallers = new List() - }; - } - - [Test] - public void TestValidateAsCompositeZeroParent() - { - var circular = _circularRefCompositeInstaller1; - - Assert.True(_installer1.ValidateAsComposite()); - - Assert.True(_compositeInstaller1.ValidateAsComposite()); - - Assert.False(circular.ValidateAsComposite()); - Assert.False(circular.ValidateAsComposite()); - - // T will be infered as TestCompositeInstaller, so parent will be "ICompositeInstaller>" - Assert.True(circular.ValidateAsComposite()); - } - - [Test] - public void TestValidateAsCompositeOneParent() - { - var dummy = _dummyCompositeInstaller1; - var circular = _circularRefCompositeInstaller1; - - Assert.True(_installer1.ValidateAsComposite(dummy)); - Assert.True(_installer1.ValidateAsComposite(circular)); - - Assert.True(_compositeInstaller1.ValidateAsComposite(dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(_compositeInstaller1)); - - Assert.False(circular.ValidateAsComposite(dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(_compositeInstaller1)); - } - - [Test] - public void TestValidateAsCompositeTwoParents() - { - var dummy = _dummyCompositeInstaller1; - var circular = _circularRefCompositeInstaller1; - - Assert.True(_installer1.ValidateAsComposite(dummy, dummy)); - Assert.True(_installer1.ValidateAsComposite(circular, circular)); - - Assert.True(_compositeInstaller1.ValidateAsComposite(dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(_compositeInstaller1, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, _compositeInstaller1)); - - Assert.False(circular.ValidateAsComposite(dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(_compositeInstaller1, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, _compositeInstaller1)); - } - - [Test] - public void TestValidateAsCompositeThreeParents() - { - var dummy = _dummyCompositeInstaller1; - var circular = _circularRefCompositeInstaller1; - - Assert.True(_installer1.ValidateAsComposite(dummy, dummy, dummy)); - Assert.True(_installer1.ValidateAsComposite(circular, circular, circular)); - - Assert.True(_compositeInstaller1.ValidateAsComposite(dummy, dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(_compositeInstaller1, dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, _compositeInstaller1, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, dummy, _compositeInstaller1)); - - Assert.False(circular.ValidateAsComposite(dummy, dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(_compositeInstaller1, dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, _compositeInstaller1, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, dummy, _compositeInstaller1)); - } - - [Test] - public void TestValidateAsCompositeFourParents() - { - var dummy = _dummyCompositeInstaller1; - var circular = _circularRefCompositeInstaller1; - - Assert.True(_installer1.ValidateAsComposite(dummy, dummy, dummy, dummy)); - Assert.True(_installer1.ValidateAsComposite(circular, circular, circular, circular)); - - Assert.True(_compositeInstaller1.ValidateAsComposite(dummy, dummy, dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(_compositeInstaller1, dummy, dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, _compositeInstaller1, dummy, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, dummy, _compositeInstaller1, dummy)); - Assert.False(_compositeInstaller1.ValidateAsComposite(dummy, dummy, dummy, _compositeInstaller1)); - - Assert.False(circular.ValidateAsComposite(dummy, dummy, dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(_compositeInstaller1, dummy, dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, _compositeInstaller1, dummy, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, dummy, _compositeInstaller1, dummy)); - Assert.False(_compositeInstaller2.ValidateAsComposite(dummy, dummy, dummy, _compositeInstaller1)); - } - - [Test] - public void TestValidateLeafInstallers() - { - Assert.True(_compositeInstaller1.ValidateLeafInstallers()); - } - - [Test] - public void TestValidateLeafInstallersWithCircularRef() - { - Assert.False(_circularRefCompositeInstaller1.ValidateLeafInstallers()); - } - - [Test] - public void TestValidateLeafInstallersWithCircularRefLeaf() - { - _compositeInstaller1._leafInstallers = new List - { - _circularRefCompositeInstaller1, - }; - Assert.False(_compositeInstaller1.ValidateLeafInstallers()); - } - - [Test] - public void TestValidateAsCompositeWithInstaller() - { - Assert.True(_installer1.ValidateAsComposite(_parentInstallers1)); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerWithoutCircularRef() - { - _parentInstallers1 = new List - { - new TestCompositeInstaller(), - new TestCompositeInstaller(), - new TestCompositeInstaller(), - }; - bool actual = _compositeInstaller1.ValidateAsComposite(_parentInstallers1); - Assert.True(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerWithoutCircularRefDeep() - { - var compositeInstaller1 = new TestCompositeInstaller(); - var compositeInstaller2 = new TestCompositeInstaller(); - var compositeInstaller3 = new TestCompositeInstaller(); - - compositeInstaller1._leafInstallers = new List - { - _dummyInstaller1, - compositeInstaller2, - _dummyInstaller2, - }; - compositeInstaller2._leafInstallers = new List - { - compositeInstaller3, - }; - compositeInstaller3._leafInstallers = new List - { - _dummyInstaller3, - }; - - bool actual = compositeInstaller1.ValidateAsComposite(_parentInstallers1); - - Assert.True(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndParentAsSelf() - { - _parentInstallers1 = new List - { - _compositeInstaller1, - }; - - bool actual = _compositeInstaller1.ValidateAsComposite(_parentInstallers1); - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndSelfCircularRef() - { - _parentInstallers1.Clear(); - - bool actual = _circularRefCompositeInstaller1.ValidateAsComposite(_parentInstallers1); - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndSelfCircularRefDeep() - { - var installer1 = new TestCompositeInstaller(); - var installer2 = new TestCompositeInstaller(); - var installer3 = new TestCompositeInstaller(); - - installer1._leafInstallers = new List - { - _dummyInstaller1, - installer2, - _dummyInstaller2, - }; - installer2._leafInstallers = new List - { - installer3, - }; - installer3._leafInstallers = new List - { - installer1, // a circular reference - _dummyInstaller3, - }; - - bool actual = installer1.ValidateAsComposite(_parentInstallers1); - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndParentCircularRef() - { - var installer = new TestCompositeInstaller - { - _leafInstallers = new List - { - _compositeInstaller1, - }, - }; - - _parentInstallers1 = new List - { - _compositeInstaller1, - }; - - bool actual = installer.ValidateAsComposite(_parentInstallers1); - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndParentCircularRefDeep() - { - var installer1 = new TestCompositeInstaller(); - var installer2 = new TestCompositeInstaller(); - var installer3 = new TestCompositeInstaller(); - - installer1._leafInstallers = new List - { - _dummyInstaller1, - installer2, - _dummyInstaller2, - }; - installer2._leafInstallers = new List - { - installer3, - }; - installer3._leafInstallers = new List - { - _compositeInstaller1, // a circular reference - _dummyInstaller3, - }; - - bool actual = installer1.ValidateAsComposite(_parentInstallers1); - - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndAnotherCircularRef() - { - var installer1 = new TestCompositeInstaller(); - var installer2 = new TestCompositeInstaller(); - var installer3 = new TestCompositeInstaller(); - - installer1._leafInstallers = new List - { - _dummyInstaller1, - installer2, - _dummyInstaller2, - }; - installer2._leafInstallers = new List - { - installer3, - }; - installer3._leafInstallers = new List - { - installer2, // a circular reference - _dummyInstaller3, - }; - - bool actual = installer1.ValidateAsComposite(_parentInstallers1); - - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeWithCompositeInstallerAndAnotherCircularRefDeep() - { - var installer1 = new TestCompositeInstaller(); - var installer2 = new TestCompositeInstaller(); - var installer3 = new TestCompositeInstaller(); - var installer4 = new TestCompositeInstaller(); - var installer5 = new TestCompositeInstaller(); - - installer1._leafInstallers = new List - { - _dummyInstaller1, - installer2, - _dummyInstaller2, - }; - installer2._leafInstallers = new List - { - installer3, - }; - installer3._leafInstallers = new List - { - installer4, - _dummyInstaller3, - }; - installer4._leafInstallers = new List - { - installer5, - }; - installer5._leafInstallers = new List - { - installer3, // a circular reference - }; - - bool actual = installer1.ValidateAsComposite(_parentInstallers1); - - Assert.False(actual); - } - - [Test] - public void TestValidateAsCompositeSavedAllocWithInstaller() - { - var reusableParentInstallers = new List> - { - new TestCompositeInstaller(), - new TestCompositeInstaller(), - new TestCompositeInstaller(), - }; - - Assert.True(_installer1.ValidateAsCompositeSavedAlloc(reusableParentInstallers)); - Assert.AreEqual(3, reusableParentInstallers.Count); - } - - [Test] - public void TestValidateAsCompositeSavedAllocWithCompositeInstaller() - { - var reusableParentInstallers = new List> - { - new TestCompositeInstaller(), - new TestCompositeInstaller(), - new TestCompositeInstaller(), - }; - - Assert.True(_compositeInstaller2.ValidateAsCompositeSavedAlloc(reusableParentInstallers)); - Assert.AreEqual(3, reusableParentInstallers.Count); - } - - [Test] - public void TestValidateAsCompositeSavedAllocWithCompositeInstallerSelfInParent() - { - var reusableParentInstallers = new List> - { - new TestCompositeInstaller(), - _compositeInstaller1, - new TestCompositeInstaller(), - }; - - Assert.False(_compositeInstaller1.ValidateAsCompositeSavedAlloc(reusableParentInstallers)); - Assert.AreEqual(3, reusableParentInstallers.Count); - } - - [Test] - public void TestValidateAsCompositeSavedAllocWithCompositeInstallerParentCircularRef() - { - var reusableParentInstallers = new List> - { - new TestCompositeInstaller(), - _compositeInstaller1, - new TestCompositeInstaller(), - }; - - Assert.False(_compositeInstaller2.ValidateAsCompositeSavedAlloc(reusableParentInstallers)); - Assert.AreEqual(3, reusableParentInstallers.Count); - } - - public class TestInstaller : IInstaller - { - public bool IsEnabled => false; - public void InstallBindings() { } - } - - public class TestCompositeInstaller : TestInstaller, ICompositeInstaller - { - public List _leafInstallers; - public IReadOnlyList LeafInstallers => _leafInstallers; - } - } -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs.meta deleted file mode 100644 index 9ceeec977..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/TestCompositeInstallerExtensions/TestCompositeInstallerExtensions.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9f7aff50ba1ad6d4c80b5f8c3a430f66 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util.meta deleted file mode 100644 index 7cab89071..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b1e7aba83a28e454586d8f515cb89534 -folderAsset: yes -timeCreated: 1476628598 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs deleted file mode 100644 index f9d782c2b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs +++ /dev/null @@ -1,70 +0,0 @@ -#if UNITY_EDITOR - -using System.Linq; -using ModestTree; -using UnityEngine; -using UnityEngine.SceneManagement; - -namespace Zenject.Tests -{ - public static class FixtureUtil - { - public static GameObject GetPrefab(string resourcePath) - { - var prefab = (GameObject)Resources.Load(resourcePath); - Assert.IsNotNull(prefab, "Expected to find prefab at '{0}'", resourcePath); - return prefab; - } - - public static void AssertNumGameObjectsWithName( - string name, int expectedNumGameObjects) - { - var numMatches = SceneManager.GetActiveScene() - .GetRootGameObjects().Where(x => x.name == name).Count(); - - Assert.IsEqual( - numMatches, expectedNumGameObjects); - } - - public static void AssertNumGameObjects( - int expectedNumGameObjects) - { - var totalNumGameObjects = - SceneManager.GetActiveScene().GetRootGameObjects().Count(); - - // -1 because the scene context - Assert.IsEqual(totalNumGameObjects - 1, expectedNumGameObjects); - } - - public static void AssertComponentCount( - int expectedNumComponents) - { - Assert.That(typeof(TComponent).DerivesFromOrEqual() - || typeof(TComponent).IsAbstract()); - - var actualCount = SceneManager.GetActiveScene().GetRootGameObjects() - .SelectMany(x => x.GetComponentsInChildren()).Count(); - - Assert.IsEqual(actualCount, expectedNumComponents, - "Expected to find '{0}' components of type '{1}' but instead found '{2}'" - .Fmt(expectedNumComponents, typeof(TComponent).PrettyName(), actualCount)); - } - - public static void AssertResolveCount( - DiContainer container, int expectedNum) - { - var actualCount = container.ResolveAll().Count; - Assert.That(actualCount == expectedNum, - "Expected to find '{0}' instances of type '{1}' but instead found '{2}'", - expectedNum, typeof(TContract).PrettyName(), actualCount); - } - - public static void CallFactoryCreateMethod(DiContainer container) - where TFactory : PlaceholderFactory - { - container.Resolve().Create(); - } - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs.meta deleted file mode 100644 index 7c86121c0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Util/FixtureUtil.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b78494b8959231d4a9fc937a39f28ce8 -timeCreated: 1506426753 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef deleted file mode 100644 index 9147ef569..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "Zenject-IntegrationTests-Editor", - "rootNamespace": "", - "references": [ - "Zenject-TestFramework", - "Zenject", - "Zenject-IntegrationTests", - "UnityEngine.TestRunner", - "UnityEditor.TestRunner" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "Zenject-usage.dll", - "nunit.framework.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS", - "UNITY_EDITOR" - ], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef.meta deleted file mode 100644 index 021d61033..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Zenject-IntegrationTests-Editor.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: b4d325adfafa9454b8d5f7d62eca2a8a -timeCreated: 1531969489 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef deleted file mode 100644 index 60fb65ebe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "Zenject-IntegrationTests", - "references": [ - "Zenject-TestFramework", - "Zenject", - "UnityEngine.TestRunner", - "UnityEditor.TestRunner" - ], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "nunit.framework.dll", - "Zenject-usage.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS" - ], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef.meta deleted file mode 100644 index ee6db53a0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Zenject-IntegrationTests.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 2845024868d5894408e3dc7b917ca748 -timeCreated: 1533537358 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor.meta deleted file mode 100644 index c46611072..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ca9d67cacb741b446be3472235157580 -folderAsset: yes -timeCreated: 1528023583 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor.meta deleted file mode 100644 index a43c81517..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 18482dc182598e14399913a5afa12430 -folderAsset: yes -timeCreated: 1527956868 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow.meta deleted file mode 100644 index 74ebc27ed..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 67a9d3b730160cd4984a4236cd692441 -folderAsset: yes -timeCreated: 1521388527 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs deleted file mode 100644 index 38e3fb35c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Zenject.MemoryPoolMonitor -{ - // Fastest known in place stable sort. No risk of exploding a stack. Cost: a relatively high number of moves. Stack can still be expensive too. - // This is a merge sort with a smart in place merge that 'rotates' the sub arrays. - // Taken from: http://thomas.baudel.name/Visualisation/VisuTri/inplacestablesort.html - public class InPlaceStableSort - { - static void Exchange(List list, int a, int b) - { - var temp = list[a]; - list[a] = list[b]; - list[b] = temp; - } - - static int Lower(List list, Comparison comparer, int from, int to, int val) - { - int len = to - from, half; - while (len > 0) - { - half = len / 2; - int mid = from + half; - if (comparer(list[mid], list[val]) < 0) - { - from = mid + 1; - len = len - half - 1; - } - else - { - len = half; - } - } - return from; - } - - static int Upper(List list, Comparison comparer, int from, int to, int val) - { - int len = to - from, half; - while (len > 0) - { - half = len / 2; - int mid = from + half; - if (comparer(list[val], list[mid]) < 0) - { - len = half; - } - else - { - from = mid + 1; - len = len - half - 1; - } - } - return from; - } - - static void InsertSort(List list, Comparison comparer, int from, int to) - { - if (to > from + 1) - { - for (int i = from + 1; i < to; i++) - { - for (int j = i; j > from; j--) - { - if (comparer(list[j], list[j - 1]) < 0) - { - Exchange(list, j, j - 1); - } - else - { - break; - } - } - } - } - } - - static int Gcd(int m, int n) - { - while (n != 0) - { - int t = m % n; - m = n; - n = t; - } - return m; - } - - static void Reverse(List list, int from, int to) - { - while (from < to) - { - Exchange(list, from++, to--); - } - } - - static void Rotate(List list, Comparison comparer, int from, int mid, int to) - { - /* a less sophisticated but costlier version: - Reverse(from, mid-1); - Reverse(mid, to-1); - Reverse(from, to-1); - */ - if (from == mid || mid == to) - { - return; - } - int n = Gcd(to - from, mid - from); - while (n-- != 0) - { - T val = list[from + n]; - int shift = mid - from; - int p1 = from + n, p2 = from + n + shift; - while (p2 != from + n) - { - list[p1] = list[p2]; - p1 = p2; - if (to - p2 > shift) - { - p2 += shift; - } - else - { - p2 = from + (shift - (to - p2)); - } - } - list[p1] = val; - } - } - - static void Merge(List list, Comparison comparer, int from, int pivot, int to, int len1, int len2) - { - if (len1 == 0 || len2 == 0) - { - return; - } - - if (len1 + len2 == 2) - { - if (comparer(list[pivot], list[from]) < 0) - { - Exchange(list, pivot, from); - } - - return; - } - - int first_cut, second_cut; - int len11, len22; - - if (len1 > len2) - { - len11 = len1 / 2; - first_cut = from + len11; - second_cut = Lower(list, comparer, pivot, to, first_cut); - len22 = second_cut - pivot; - } - else - { - len22 = len2 / 2; - second_cut = pivot + len22; - first_cut = Upper(list, comparer, from, pivot, second_cut); - len11 = first_cut - from; - } - - Rotate(list, comparer, first_cut, pivot, second_cut); - int new_mid = first_cut + len22; - Merge(list, comparer, from, first_cut, new_mid, len11, len22); - Merge(list, comparer, new_mid, second_cut, to, len1 - len11, len2 - len22); - } - - public static void Sort(List list, Comparison comparer, int from, int to) - { - if (to - from < 12) - { - InsertSort(list, comparer, from, to); - return; - } - - int middle = (from + to) / 2; - Sort(list, comparer, from, middle); - Sort(list, comparer, middle, to); - Merge(list, comparer, from, middle, to, middle - from, to - middle); - } - - public static void Sort(List list, Comparison comparer) - { - Sort(list, comparer, 0, list.Count); - } - }; -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs.meta deleted file mode 100644 index 44966accf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/InPlaceStableSort.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 48a8b9cc5fc1b7641ad87f55c4da8788 -timeCreated: 1528024394 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs deleted file mode 100644 index c9b47bd35..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs +++ /dev/null @@ -1,556 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using ModestTree; -using UnityEngine; -using UnityEditor; -using UnityEngine.Profiling; -using Zenject; - -namespace Zenject.MemoryPoolMonitor -{ - public class MpmView : IGuiRenderable, ITickable, IInitializable - { - readonly Settings _settings; - readonly MpmWindow _window; - - readonly List _pools = new List(); - - const int NumColumns = 6; - - static string[] ColumnTitles = new string[] - { - "Pool Type", "Num Total", "Num Active", "Num Inactive", "", "" - }; - - int _controlID; - int _sortColumn = 0; - float _scrollPosition; - bool _poolListDirty; - bool _sortDescending; - Texture2D _rowBackground1; - Texture2D _rowBackground2; - Texture2D _rowBackgroundHighlighted; - Texture2D _rowBackgroundSelected; - Texture2D _lineTexture; - Type _selectedPoolType; - string _searchFilter = ""; - string _actualFilter = ""; - - public MpmView( - MpmWindow window, - Settings settings) - { - _settings = settings; - _window = window; - } - - public float HeaderTop - { - get { return _settings.HeaderHeight + _settings.FilterHeight; } - } - - public float TotalWidth - { - get { return _window.position.width; } - } - - public float TotalHeight - { - get { return _window.position.height; } - } - - string GetName(IMemoryPool pool) - { - var type = pool.GetType(); - return "{0}.{1}".Fmt(type.Namespace, type.PrettyName()); - } - - Texture2D CreateColorTexture(Color color) - { - var texture = new Texture2D(1, 1); - texture.SetPixel(1, 1, color); - texture.Apply(); - return texture; - } - - Texture2D RowBackground1 - { - get - { - if (_rowBackground1 == null) - { - _rowBackground1 = CreateColorTexture(_settings.RowBackground1); - } - - return _rowBackground1; - } - } - - Texture2D RowBackground2 - { - get - { - if (_rowBackground2 == null) - { - _rowBackground2 = CreateColorTexture(_settings.RowBackground2); - } - - return _rowBackground2; - } - } - - Texture2D RowBackgroundHighlighted - { - get - { - if (_rowBackgroundHighlighted == null) - { - _rowBackgroundHighlighted = CreateColorTexture(_settings.RowBackgroundHighlighted); - } - - return _rowBackgroundHighlighted; - } - } - - Texture2D RowBackgroundSelected - { - get - { - if (_rowBackgroundSelected == null) - { - _rowBackgroundSelected = CreateColorTexture(_settings.RowBackgroundSelected); - } - - return _rowBackgroundSelected; - } - } - - Texture2D LineTexture - { - get - { - if (_lineTexture == null) - { - _lineTexture = CreateColorTexture(_settings.LineColor); - } - - return _lineTexture; - } - } - - public void Initialize() - { - StaticMemoryPoolRegistry.PoolAdded += OnPoolListChanged; - StaticMemoryPoolRegistry.PoolRemoved += OnPoolListChanged; - _poolListDirty = true; - } - - void OnPoolListChanged(IMemoryPool pool) - { - _poolListDirty = true; - } - - public void Tick() - { - if (_poolListDirty) - { - _poolListDirty = false; - - _pools.Clear(); - _pools.AddRange(StaticMemoryPoolRegistry.Pools.Where(ShouldIncludePool)); - } - - InPlaceStableSort.Sort(_pools, ComparePools); - } - - bool ShouldIncludePool(IMemoryPool pool) - { - //var poolType = pool.GetType(); - - //if (poolType.Namespace == "Zenject") - //{ - //return false; - //} - - if (_actualFilter.IsEmpty()) - { - return true; - } - - return GetName(pool).ToLowerInvariant().Contains(_actualFilter); - } - - public void GuiRender() - { - _controlID = GUIUtility.GetControlID(FocusType.Passive); - - Rect windowBounds = new Rect(0, 0, TotalWidth, _window.position.height); - - Vector2 scrollbarSize = new Vector2( - GUI.skin.horizontalScrollbar.CalcSize(GUIContent.none).y, - GUI.skin.verticalScrollbar.CalcSize(GUIContent.none).x); - - GUI.Label(new Rect( - 0, 0, _settings.FilterPaddingLeft, _settings.FilterHeight), "Filter:", _settings.FilterTextStyle); - - var searchFilter = GUI.TextField( - new Rect(_settings.FilterPaddingLeft, _settings.FilterPaddingTop, _settings.FilterWidth, _settings.FilterInputHeight), _searchFilter, 999); - - if (searchFilter != _searchFilter) - { - _searchFilter = searchFilter; - _actualFilter = _searchFilter.Trim().ToLowerInvariant(); - _poolListDirty = true; - } - - Rect viewArea = new Rect(0, HeaderTop, TotalWidth - scrollbarSize.y, _window.position.height - HeaderTop); - - Rect contentRect = new Rect( - 0, 0, viewArea.width, _pools.Count() * _settings.RowHeight); - - Rect vScrRect = new Rect( - windowBounds.x + viewArea.width, HeaderTop, scrollbarSize.y, viewArea.height); - - _scrollPosition = GUI.VerticalScrollbar( - vScrRect, _scrollPosition, viewArea.height, 0, contentRect.height); - - DrawColumnHeaders(viewArea.width); - - GUI.BeginGroup(viewArea); - { - contentRect.y = -_scrollPosition; - - GUI.BeginGroup(contentRect); - { - DrawContent(contentRect.width); - } - GUI.EndGroup(); - } - GUI.EndGroup(); - - HandleEvents(); - } - - void DrawColumnHeaders(float width) - { - GUI.DrawTexture(new Rect( - 0, _settings.FilterHeight - 0.5f * _settings.SplitterWidth, width, _settings.SplitterWidth), LineTexture); - - GUI.DrawTexture(new Rect( - 0, HeaderTop - 0.5f * _settings.SplitterWidth, width, _settings.SplitterWidth), LineTexture); - - var columnPos = 0.0f; - - for (int i = 0; i < NumColumns; i++) - { - var columnWidth = GetColumnWidth(i); - DrawColumn1(i, columnPos, columnWidth); - columnPos += columnWidth; - } - } - - void DrawColumn1( - int index, float position, float width) - { - var columnHeight = _settings.HeaderHeight + _pools.Count() * _settings.RowHeight; - - if (index < 4) - { - GUI.DrawTexture(new Rect( - position + width - _settings.SplitterWidth * 0.5f, _settings.FilterHeight, - _settings.SplitterWidth, columnHeight), LineTexture); - } - - var headerBounds = new Rect( - position + 0.5f * _settings.SplitterWidth, - _settings.FilterHeight, - width - _settings.SplitterWidth, _settings.HeaderHeight); - - DrawColumnHeader(index, headerBounds, ColumnTitles[index]); - } - - void HandleEvents() - { - switch (Event.current.GetTypeForControl(_controlID)) - { - case EventType.ScrollWheel: - { - _scrollPosition = Mathf.Clamp(_scrollPosition + Event.current.delta.y * _settings.ScrollSpeed, 0, TotalHeight); - break; - } - case EventType.MouseDown: - { - _selectedPoolType = TryGetPoolTypeUnderMouse(); - break; - } - } - } - - Type TryGetPoolTypeUnderMouse() - { - var mousePositionInContent = Event.current.mousePosition + Vector2.up * _scrollPosition; - - for (int i = 0; i < _pools.Count; i++) - { - var pool = _pools[i]; - - var rowRect = GetPoolRowRect(i); - rowRect.y += HeaderTop; - - if (rowRect.Contains(mousePositionInContent)) - { - return pool.GetType(); - } - } - - return null; - } - - Rect GetPoolRowRect(int index) - { - return new Rect( - 0, index * _settings.RowHeight, TotalWidth, _settings.RowHeight); - } - - void DrawRowBackgrounds() - { - var mousePositionInContent = Event.current.mousePosition; - - for (int i = 0; i < _pools.Count; i++) - { - var pool = _pools[i]; - var rowRect = GetPoolRowRect(i); - - Texture2D background; - - if (pool.GetType() == _selectedPoolType) - { - background = RowBackgroundSelected; - } - else - { - if (rowRect.Contains(mousePositionInContent)) - { - background = RowBackgroundHighlighted; - } - else if (i % 2 == 0) - { - background = RowBackground1; - } - else - { - background = RowBackground2; - } - } - - GUI.DrawTexture(rowRect, background); - } - } - - float GetColumnWidth(int index) - { - if (index == 0) - { - return TotalWidth - (NumColumns - 1) * _settings.NormalColumnWidth; - } - - return _settings.NormalColumnWidth; - } - - void DrawContent(float width) - { - DrawRowBackgrounds(); - - var columnPos = 0.0f; - - for (int i = 0; i < NumColumns; i++) - { - var columnWidth = GetColumnWidth(i); - DrawColumn(i, columnPos, columnWidth); - columnPos += columnWidth; - } - } - - void DrawColumn( - int index, float position, float width) - { - var columnHeight = _settings.HeaderHeight + _pools.Count() * _settings.RowHeight; - - if (index < 4) - { - GUI.DrawTexture(new Rect( - position + width - _settings.SplitterWidth * 0.5f, 0, - _settings.SplitterWidth, columnHeight), LineTexture); - } - - var columnBounds = new Rect( - position + 0.5f * _settings.SplitterWidth, 0, width - _settings.SplitterWidth, columnHeight); - - GUI.BeginGroup(columnBounds); - { - for (int i = 0; i < _pools.Count; i++) - { - var pool = _pools[i]; - - var cellBounds = new Rect( - 0, _settings.RowHeight * i, - columnBounds.width, _settings.RowHeight); - - DrawColumnContents(index, cellBounds, pool); - } - } - GUI.EndGroup(); - } - - void DrawColumnContents( - int index, Rect bounds, IMemoryPool pool) - { - switch (index) - { - case 0: - { - GUI.Label(bounds, GetName(pool), _settings.ContentNameTextStyle); - break; - } - case 1: - { - GUI.Label(bounds, pool.NumTotal.ToString(), _settings.ContentNumberTextStyle); - break; - } - case 2: - { - GUI.Label(bounds, pool.NumActive.ToString(), _settings.ContentNumberTextStyle); - break; - } - case 3: - { - GUI.Label(bounds, pool.NumInactive.ToString(), _settings.ContentNumberTextStyle); - break; - } - case 4: - { - var buttonBounds = new Rect( - bounds.x + _settings.ButtonMargin, bounds.y, bounds.width - _settings.ButtonMargin, bounds.height); - - if (GUI.Button(buttonBounds, "Clear")) - { - pool.Clear(); - } - break; - } - case 5: - { - var buttonBounds = new Rect( - bounds.x, bounds.y, bounds.width - 15.0f, bounds.height); - - if (GUI.Button(buttonBounds, "Expand")) - { - pool.ExpandBy(5); - } - break; - } - default: - { - throw Assert.CreateException(); - } - } - } - - void DrawColumnHeader(int index, Rect bounds, string text) - { - if (index > 3) - { - return; - } - - if (_sortColumn == index) - { - var offset = _settings.TriangleOffset; - var image = _sortDescending ? _settings.TriangleDown : _settings.TriangleUp; - - GUI.DrawTexture(new Rect(bounds.x + offset.x, bounds.y + offset.y, image.width, image.height), image); - } - - if (GUI.Button(bounds, text, index == 0 ? _settings.HeaderTextStyleName : _settings.HeaderTextStyle)) - { - if (_sortColumn == index) - { - _sortDescending = !_sortDescending; - } - else - { - _sortColumn = index; - } - } - } - - int ComparePools(IMemoryPool left, IMemoryPool right) - { - if (_sortDescending) - { - var temp = right; - right = left; - left = temp; - } - - switch (_sortColumn) - { - case 4: - case 5: - case 0: - { - return GetName(left).CompareTo(GetName(right)); - } - case 1: - { - return left.NumTotal.CompareTo(right.NumTotal); - } - case 2: - { - return left.NumActive.CompareTo(right.NumActive); - } - case 3: - { - return left.NumInactive.CompareTo(right.NumInactive); - } - } - - throw Assert.CreateException(); - } - - [Serializable] - public class Settings - { - public Texture2D TriangleUp; - public Texture2D TriangleDown; - public Vector2 TriangleOffset; - - public GUIStyle FilterTextStyle; - public GUIStyle HeaderTextStyleName; - public GUIStyle HeaderTextStyle; - public GUIStyle ContentNumberTextStyle; - public GUIStyle ContentNameTextStyle; - - public Color RowBackground1; - public Color RowBackground2; - public Color RowBackgroundHighlighted; - public Color RowBackgroundSelected; - public Color LineColor; - - public float ScrollSpeed = 1.5f; - public float NormalColumnWidth; - public float HeaderHeight; - public float FilterHeight; - public float FilterInputHeight; - public float FilterWidth; - public float FilterPaddingLeft; - public float FilterPaddingTop = 10; - - public float SplitterWidth; - public float RowHeight; - - public float ButtonMargin = 3; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs.meta deleted file mode 100644 index b28981e46..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmView.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1bdf0766db282fd4eaba7e7cd7d17ca5 -timeCreated: 1521391096 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs deleted file mode 100644 index 30ec10549..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using ModestTree; -using UnityEngine; -using UnityEditor; -using Zenject; - -namespace Zenject.MemoryPoolMonitor -{ - public class MpmWindow : ZenjectEditorWindow - { - [MenuItem("Window/Zenject Pool Monitor")] - public static MpmWindow GetOrCreateWindow() - { - var window = EditorWindow.GetWindow(); - window.titleContent = new GUIContent("Pool Monitor"); - return window; - } - - public override void InstallBindings() - { - MpmSettingsInstaller.InstallFromResource(Container); - - Container.BindInstance(this); - Container.BindInterfacesTo().AsSingle(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs.meta deleted file mode 100644 index eb8c5cbd2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/DebugWindow/MpmWindow.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: e38c08208cf0cee48a675a3944d37e10 -timeCreated: 1521391096 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs deleted file mode 100644 index 41ff2e9ba..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs +++ /dev/null @@ -1,18 +0,0 @@ -using UnityEngine; -using UnityEditor; -using Zenject; - -namespace Zenject.MemoryPoolMonitor -{ - [CreateAssetMenu(fileName = "MpmSettingsInstaller", menuName = "Installers/MpmSettingsInstaller")] - public class MpmSettingsInstaller : ScriptableObjectInstaller - { - public MpmView.Settings MpmView; - public MpmView.Settings MpmViewDark; - - public override void InstallBindings() - { - Container.BindInstance(EditorGUIUtility.isProSkin ? MpmViewDark : MpmView); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs.meta deleted file mode 100644 index 6f593d9dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/MpmSettingsInstaller.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 7893183729d13c84b80bb80d3aac6715 -timeCreated: 1521390842 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources.meta deleted file mode 100644 index 29743a53b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: d2ca2f3310cb1f043806c4423a5ba68d -folderAsset: yes -timeCreated: 1521391155 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers.meta deleted file mode 100644 index f2e664d7a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: d8bd38610b9ceab43b21018a741225e8 -folderAsset: yes -timeCreated: 1521391199 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset deleted file mode 100644 index d38ba1c8a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset +++ /dev/null @@ -1,723 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7893183729d13c84b80bb80d3aac6715, type: 3} - m_Name: MpmSettingsInstaller - m_EditorClassIdentifier: - MpmView: - TriangleUp: {fileID: 2800000, guid: ac5b05acff67c77418510f95f0ac9bb1, type: 3} - TriangleDown: {fileID: 2800000, guid: fd2add38dc259eb49a3e7fc331758b7e, type: 3} - TriangleOffset: {x: 1.6, y: 6.07} - FilterTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 15 - m_FontStyle: 0 - m_Alignment: 0 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 2.63, y: 4.65} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - HeaderTextStyleName: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 0} - m_FontSize: 12 - m_FontStyle: 1 - m_Alignment: 3 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 23.1, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - HeaderTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 12 - m_FontStyle: 1 - m_Alignment: 4 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 7.2, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - ContentNumberTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_Alignment: 4 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 0, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - ContentNameTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0, g: 0, b: 0, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 12 - m_FontStyle: 0 - m_Alignment: 3 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 9.01, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - RowBackground1: {r: 0.854902, g: 0.854902, b: 0.854902, a: 1} - RowBackground2: {r: 0.833, g: 0.833, b: 0.833, a: 1} - RowBackgroundHighlighted: {r: 0, g: 0, b: 0, a: 0} - RowBackgroundSelected: {r: 0, g: 0, b: 0, a: 0} - LineColor: {r: 0.6691177, g: 0.6691177, b: 0.6691177, a: 1} - ScrollSpeed: 10.64 - NormalColumnWidth: 103.92 - HeaderHeight: 27.24 - FilterHeight: 28.1 - FilterInputHeight: 17.9 - FilterWidth: 295.3 - FilterPaddingLeft: 42.92 - FilterPaddingTop: 5.6 - SplitterWidth: 2.56 - RowHeight: 23.6 - ButtonMargin: -0.1 - MpmViewDark: - TriangleUp: {fileID: 2800000, guid: ac5b05acff67c77418510f95f0ac9bb1, type: 3} - TriangleDown: {fileID: 2800000, guid: fd2add38dc259eb49a3e7fc331758b7e, type: 3} - TriangleOffset: {x: 1.6, y: 6.07} - FilterTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 15 - m_FontStyle: 0 - m_Alignment: 0 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 2.63, y: 4.65} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - HeaderTextStyleName: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 0} - m_FontSize: 12 - m_FontStyle: 1 - m_Alignment: 3 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 23.1, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - HeaderTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 12 - m_FontStyle: 1 - m_Alignment: 4 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 7.2, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - ContentNumberTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 - m_FontStyle: 0 - m_Alignment: 4 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 0, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - ContentNameTextStyle: - m_Name: - m_Normal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Hover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Active: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Focused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnNormal: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnHover: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnActive: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_OnFocused: - m_Background: {fileID: 0} - m_ScaledBackgrounds: [] - m_TextColor: {r: 0.7058824, g: 0.7058824, b: 0.7058824, a: 1} - m_Border: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Margin: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Overflow: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 12 - m_FontStyle: 0 - m_Alignment: 3 - m_WordWrap: 0 - m_RichText: 1 - m_TextClipping: 0 - m_ImagePosition: 0 - m_ContentOffset: {x: 9.01, y: 0} - m_FixedWidth: 0 - m_FixedHeight: 0 - m_StretchWidth: 1 - m_StretchHeight: 0 - RowBackground1: {r: 0.23137257, g: 0.23137257, b: 0.23137257, a: 1} - RowBackground2: {r: 0.21568629, g: 0.21568629, b: 0.21568629, a: 1} - RowBackgroundHighlighted: {r: 0, g: 0, b: 0, a: 0} - RowBackgroundSelected: {r: 0, g: 0, b: 0, a: 0} - LineColor: {r: 0.121568635, g: 0.121568635, b: 0.121568635, a: 1} - ScrollSpeed: 10.64 - NormalColumnWidth: 103.92 - HeaderHeight: 27.24 - FilterHeight: 28.1 - FilterInputHeight: 17.9 - FilterWidth: 295.3 - FilterPaddingLeft: 42.92 - FilterPaddingTop: 5.6 - SplitterWidth: 2.56 - RowHeight: 23.6 - ButtonMargin: -0.1 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset.meta deleted file mode 100644 index 9bb95b290..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Resources/Installers/MpmSettingsInstaller.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b8f181012b3a35f46ab27f3840f85f55 -timeCreated: 1521391162 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png deleted file mode 100644 index f2a3f799a..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png.meta deleted file mode 100644 index 77a61e004..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleDown.png.meta +++ /dev/null @@ -1,98 +0,0 @@ -fileFormatVersion: 2 -guid: fd2add38dc259eb49a3e7fc331758b7e -timeCreated: 1528020459 -licenseType: Free -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png deleted file mode 100644 index af2d1e715..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png.meta deleted file mode 100644 index b84caab9f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/TriangleUp.png.meta +++ /dev/null @@ -1,98 +0,0 @@ -fileFormatVersion: 2 -guid: ac5b05acff67c77418510f95f0ac9bb1 -timeCreated: 1528020459 -licenseType: Free -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 4 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -1 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - spritePackingTag: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef deleted file mode 100644 index 8e17fb022..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "Zenject-PoolMonitor-Editor", - "references": [ - "Zenject", - "Zenject-Editor" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [] -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef.meta deleted file mode 100644 index 4f5228093..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/MemoryPoolMonitor/Editor/Zenject-PoolMonitor-Editor.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: e988738e8012f5a4fa42a45fcab11e2c -timeCreated: 1531030364 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking.meta deleted file mode 100644 index 26c435967..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: c269d209df5c19940a2cf8c1ae365768 -folderAsset: yes -timeCreated: 1537245053 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common.meta deleted file mode 100644 index ccb2cef4e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1f7a08e3d1279e542954d80ff88dcd95 -folderAsset: yes -timeCreated: 1537245053 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs deleted file mode 100644 index f8b5f6aa5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs +++ /dev/null @@ -1,382 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using ModestTree; -using Zenject.ReflectionBaking.Mono.Cecil; -using Zenject.ReflectionBaking.Mono.Collections.Generic; -using ICustomAttributeProvider = Zenject.ReflectionBaking.Mono.Cecil.ICustomAttributeProvider; - -namespace Zenject.ReflectionBaking -{ - public static class CecilExtensions - { - public static Type TryGetActualType(this TypeReference typeRef, Assembly assembly) - { - var reflectionName = GetReflectionName(typeRef); - return assembly.GetType(reflectionName); - } - - static string GetReflectionName(TypeReference type) - { - if (type.IsGenericInstance) - { - var genericInstance = (GenericInstanceType)type; - - return string.Format( - "{0}.{1}[{2}]", genericInstance.Namespace, type.Name, - String.Join(",", genericInstance.GenericArguments.Select(p => GetReflectionName(p)).ToArray())); - } - - return type.FullName; - } - - public static List LookupAllTypes(this ModuleDefinition module) - { - var allTypes = new List(); - - foreach (var type in module.Types) - { - LookupAllTypesInternal(type, allTypes); - } - - return allTypes; - } - - static void LookupAllTypesInternal(TypeDefinition type, List buffer) - { - buffer.Add(type); - - foreach (var nestedType in type.NestedTypes) - { - LookupAllTypesInternal(nestedType, buffer); - } - } - - public static TypeReference ImportType(this ModuleDefinition module) - { - return module.ImportType(typeof(T)); - } - - public static TypeReference ImportType(this ModuleDefinition module, Type type) - { - return module.Import(type); - } - - public static MethodReference ImportMethod(this ModuleDefinition module, string methodName) - { - return module.ImportMethod(typeof(T), methodName); - } - - public static MethodReference ImportMethod( - this ModuleDefinition module, Type type, string methodName) - { - return module.Import( - module.ImportType(type).Resolve().GetMethod(methodName)); - } - - public static MethodReference ImportMethod( - this ModuleDefinition module, string methodName, int numArgs) - { - return module.ImportMethod(typeof(T), methodName, numArgs); - } - - public static MethodReference ImportMethod( - this ModuleDefinition module, Type type, string methodName, int numArgs) - { - return module.Import( - module.ImportType(type).Resolve().GetMethod(methodName, numArgs)); - } - - public static MethodDefinition GetMethod(this TypeDefinition instance, string name) - { - for (int i = 0; i < instance.Methods.Count; i++) - { - MethodDefinition methodDef = instance.Methods[i]; - - if (string.CompareOrdinal(methodDef.Name, name) == 0) - { - return methodDef; - } - } - return null; - } - - public static MethodDefinition GetMethod(this TypeDefinition instance, string name, params Type[] parameterTypes) - { - for (int i = 0; i < instance.Methods.Count; i++) - { - MethodDefinition methodDefinition = instance.Methods[i]; - - if (!string.Equals(methodDefinition.Name, name, StringComparison.Ordinal) || - parameterTypes.Length != methodDefinition.Parameters.Count) - { - continue; - } - - MethodDefinition result = methodDefinition; - for (int x = methodDefinition.Parameters.Count - 1; x >= 0; x--) - { - ParameterDefinition parameter = methodDefinition.Parameters[x]; - if (!string.Equals(parameter.ParameterType.Name, parameterTypes[x].Name, StringComparison.Ordinal)) - { - break; - } - - if (x == 0) - { - return result; - } - } - } - return null; - } - - public static MethodDefinition GetMethod(this TypeDefinition instance, string name, params TypeReference[] parameterTypes) - { - if (instance.Methods != null) - { - for (int i = 0; i < instance.Methods.Count; i++) - { - MethodDefinition methodDefinition = instance.Methods[i]; - if (string.Equals(methodDefinition.Name, name, StringComparison.Ordinal) // Names Match - && parameterTypes.Length == methodDefinition.Parameters.Count) // The same number of parameters - { - MethodDefinition result = methodDefinition; - for (int x = methodDefinition.Parameters.Count - 1; x >= 0; x--) - { - ParameterDefinition parameter = methodDefinition.Parameters[x]; - if (!string.Equals(parameter.ParameterType.Name, parameterTypes[x].Name, StringComparison.Ordinal)) - { - break; - } - - if (x == 0) - { - return result; - } - } - } - } - } - return null; - } - - public static MethodDefinition GetMethod(this TypeDefinition instance, string name, int argCount) - { - for (int i = 0; i < instance.Methods.Count; i++) - { - MethodDefinition methodDef = instance.Methods[i]; - - if (string.CompareOrdinal(methodDef.Name, name) == 0 && methodDef.Parameters.Count == argCount) - { - return methodDef; - } - } - return null; - } - - public static PropertyDefinition GetPropertyDefinition(this TypeDefinition instance, string name) - { - for (int i = 0; i < instance.Properties.Count; i++) - { - PropertyDefinition preopertyDef = instance.Properties[i]; - - // Properties can only have one argument or they are an indexer. - if (string.CompareOrdinal(preopertyDef.Name, name) == 0 && preopertyDef.Parameters.Count == 0) - { - return preopertyDef; - } - } - return null; - } - - public static bool HasCustomAttribute(this ICustomAttributeProvider instance) - { - if (!instance.HasCustomAttributes) - { - return false; - } - - Collection attributes = instance.CustomAttributes; - - for(int i = 0; i < attributes.Count; i++) - { - if (attributes[i].AttributeType.FullName.Equals(typeof(T).FullName, StringComparison.Ordinal)) - { - return true; - } - } - - return false; - } - - public static MethodReference ChangeDeclaringType( - this MethodReference methodDef, TypeReference typeRef) - { - var newMethodRef = new MethodReference( - methodDef.Name, methodDef.ReturnType, typeRef); - - newMethodRef.HasThis = methodDef.HasThis; - - foreach (var arg in methodDef.Parameters) - { - var paramDef = new ParameterDefinition(arg.ParameterType); - - newMethodRef.Parameters.Add(paramDef); - } - - return newMethodRef; - } - - public static FieldReference ChangeDeclaringType( - this FieldReference fieldDef, TypeReference typeRef) - { - return new FieldReference( - fieldDef.Name, fieldDef.FieldType, typeRef); - } - - public static CustomAttribute GetCustomAttribute(this ICustomAttributeProvider instance) - { - if (!instance.HasCustomAttributes) - { - return null; - } - - Collection attributes = instance.CustomAttributes; - - for (int i = 0; i < attributes.Count; i++) - { - if (attributes[i].AttributeType.FullName.Equals(typeof(T).FullName, StringComparison.Ordinal)) - { - return attributes[i]; - } - } - return null; - } - - public static IEnumerable GetSpecificBaseTypesAndSelf( - this TypeReference specificTypeRef) - { - yield return specificTypeRef; - - foreach (var ancestor in specificTypeRef.GetSpecificBaseTypesAndSelf()) - { - yield return ancestor; - } - } - - public static IEnumerable GetSpecificBaseTypes( - this TypeReference specificTypeRef) - { - var specificBaseTypeRef = specificTypeRef.TryGetSpecificBaseType(); - - if (specificBaseTypeRef != null) - { - yield return specificBaseTypeRef; - - foreach (var ancestor in GetSpecificBaseTypes(specificBaseTypeRef)) - { - yield return ancestor; - } - } - } - - public static IEnumerable AllNestParentsAndSelf(this TypeReference specificTypeRef) - { - yield return specificTypeRef; - - foreach (var ancestor in specificTypeRef.AllNestParents()) - { - yield return ancestor; - } - } - - public static IEnumerable AllNestParents(this TypeReference specificTypeRef) - { - if (specificTypeRef.DeclaringType != null) - { - yield return specificTypeRef.DeclaringType; - - foreach (var ancestor in specificTypeRef.DeclaringType.AllNestParents()) - { - yield return ancestor; - } - } - } - - public static TypeReference TryResolve(this TypeReference typeRef) - { - try - { - return typeRef.Resolve(); - } - catch - { - return null; - } - } - - public static TypeReference TryGetSpecificBaseType(this TypeReference specificTypeRef) - { - var typeDef = specificTypeRef.Resolve(); - - if (typeDef.BaseType == null - || typeDef.BaseType.FullName == "System.Object") - { - return null; - } - - var specificBaseTypeRef = typeDef.BaseType; - - if (specificBaseTypeRef.ContainsGenericParameter) - { - var genericArgMap = new Dictionary(); - - foreach (var ancestor in specificTypeRef.AllNestParentsAndSelf()) - { - var specificTypeRefGenericInstance = ancestor as GenericInstanceType; - - if (specificTypeRefGenericInstance != null) - { - for (int i = 0; i < typeDef.GenericParameters.Count; i++) - { - genericArgMap[typeDef.GenericParameters[i].Name] = specificTypeRefGenericInstance.GenericArguments[i]; - } - } - } - - specificBaseTypeRef = FillInGenericParameters(specificBaseTypeRef, genericArgMap); - } - - return specificBaseTypeRef; - } - - public static TypeReference FillInGenericParameters( - TypeReference type, Dictionary genericArgMap) - { - var genericType = type as GenericInstanceType; - Assert.IsNotNull(genericType); - - var genericTypeClone = new GenericInstanceType(type.Resolve()); - - for (int i = 0; i < genericType.GenericArguments.Count; i++) - { - var arg = genericType.GenericArguments[i]; - - if (arg.IsGenericParameter) - { - Assert.That(genericArgMap.ContainsKey(arg.Name), "Could not find key '{0}' for type '{1}'", arg.Name, type.FullName); - - genericTypeClone.GenericArguments.Add(genericArgMap[arg.Name]); - } - else - { - genericTypeClone.GenericArguments.Add(arg); - } - } - - return genericTypeClone; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs.meta deleted file mode 100644 index 5b789540a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/CecilExtensions.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 89602ba5a473d064387392d8d2055aa4 -timeCreated: 1537234617 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs deleted file mode 100644 index 4c4f0ace0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs +++ /dev/null @@ -1,752 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text.RegularExpressions; -using ModestTree; -using Zenject.Internal; -using Zenject.ReflectionBaking.Mono.Cecil; -using Zenject.ReflectionBaking.Mono.Cecil.Cil; -using Zenject.ReflectionBaking.Mono.Collections.Generic; -using MethodAttributes = Zenject.ReflectionBaking.Mono.Cecil.MethodAttributes; - -namespace Zenject.ReflectionBaking -{ - public class ReflectionBakingModuleEditor - { - readonly Assembly _assembly; - readonly ModuleDefinition _module; - readonly List _namespaceRegexes; - - MethodReference _zenjectTypeInfoConstructor; - MethodReference _injectableInfoConstructor; - MethodReference _injectMethodInfoConstructor; - MethodReference _injectMemberInfoConstructor; - MethodReference _constructorInfoConstructor; - MethodReference _getTypeFromHandleMethod; - MethodReference _funcConstructor; - MethodReference _funcPostInject; - MethodReference _funcMemberSetter; - MethodReference _preserveConstructor; - - TypeReference _injectMethodInfoType; - TypeReference _injectMemberInfoType; - TypeReference _injectableInfoType; - TypeReference _objectArrayType; - TypeReference _zenjectTypeInfoType; - - ReflectionBakingModuleEditor( - ModuleDefinition module, Assembly assembly, List namespacePatterns) - { - _module = module; - _assembly = assembly; - _namespaceRegexes = namespacePatterns.Select(CreateRegex).ToList(); - _namespaceRegexes.Add(CreateRegex("^Zenject")); - } - - public static int WeaveAssembly( - ModuleDefinition module, Assembly assembly) - { - return WeaveAssembly(module, assembly, new List()); - } - - public static int WeaveAssembly( - ModuleDefinition module, Assembly assembly, List namespacePatterns) - { - return new ReflectionBakingModuleEditor(module, assembly, namespacePatterns).Run(); - } - - int Run() - { - SaveImports(); - - int numTypesEditted = 0; - - var allTypes = _module.LookupAllTypes(); - - foreach (var typeDef in allTypes) - { - if (_namespaceRegexes.Any() && !_namespaceRegexes.Any(x => x.IsMatch(typeDef.FullName))) - { - continue; - } - - var actualType = typeDef.TryGetActualType(_assembly); - - if (actualType == null) - { - Log.Warn("Could not find actual type for type '{0}', skipping", typeDef.FullName); - continue; - } - - if (TryEditType(typeDef, actualType)) - { - numTypesEditted++; - } - } - - return numTypesEditted; - } - - Regex CreateRegex(string regexStr) - { - return new Regex(regexStr, RegexOptions.Compiled); - } - - void SaveImports() - { - _zenjectTypeInfoType = _module.ImportType(); - _zenjectTypeInfoConstructor = _module.ImportMethod(".ctor"); - - _injectableInfoConstructor = _module.ImportMethod(".ctor"); - - _getTypeFromHandleMethod = _module.ImportMethod("GetTypeFromHandle", 1); - - _injectMethodInfoType = _module.ImportType(); - _injectMethodInfoConstructor = _module.ImportMethod(".ctor"); - - _injectMemberInfoType = _module.ImportType(); - _injectMemberInfoConstructor = _module.ImportMethod(".ctor"); - - _preserveConstructor = _module.ImportMethod(".ctor"); - _constructorInfoConstructor = _module.ImportMethod(".ctor"); - - _injectableInfoType = _module.ImportType(); - - _objectArrayType = _module.Import(typeof(object[])); - - _funcConstructor = _module.ImportMethod(".ctor", 2); - - _funcPostInject = _module.ImportMethod(".ctor", 2); - - _funcMemberSetter = _module.ImportMethod(".ctor", 2); - } - - public bool TryEditType(TypeDefinition typeDef, Type actualType) - { - if (actualType.IsEnum || actualType.IsValueType || actualType.IsInterface - || actualType.HasAttribute() - || IsStaticClass(actualType) || actualType.DerivesFromOrEqual() || actualType.DerivesFromOrEqual()) - { - return false; - } - - // Allow running on the same dll multiple times without causing problems - if (IsTypeProcessed(typeDef)) - { - return false; - } - - try - { - var typeInfo = ReflectionTypeAnalyzer.GetReflectionInfo(actualType); - - var factoryMethod = TryAddFactoryMethod(typeDef, typeInfo); - var genericTypeDef = CreateGenericInstanceWithParameters(typeDef); - var fieldSetMethods = AddFieldSetters(typeDef, genericTypeDef, typeInfo); - var propertySetMethods = AddPropertySetters(typeDef, genericTypeDef, typeInfo); - var postInjectMethods = AddPostInjectMethods(typeDef, genericTypeDef, typeInfo); - - CreateGetInfoMethod( - typeDef, genericTypeDef, typeInfo, - factoryMethod, fieldSetMethods, propertySetMethods, postInjectMethods); - } - catch (Exception e) - { - Log.ErrorException("Error when modifying type '{0}'".Fmt(actualType), e); - throw; - } - - return true; - } - - static bool IsStaticClass(Type type) - { - // Apparently this is unique to static classes - return type.IsAbstract && type.IsSealed; - } - - // We are already processed if our static constructor calls TypeAnalyzer - bool IsTypeProcessed(TypeDefinition typeDef) - { - return typeDef.GetMethod(TypeAnalyzer.ReflectionBakingGetInjectInfoMethodName) != null; - } - - void EmitCastOperation(ILProcessor processor, Type type, Collection genericParams) - { - if (type.IsGenericParameter) - { - processor.Emit(OpCodes.Unbox_Any, genericParams[type.GenericParameterPosition]); - } - else if (type.IsEnum) - { - processor.Emit(OpCodes.Unbox_Any, _module.TypeSystem.Int32); - } - else if (type.IsValueType) - { - processor.Emit(OpCodes.Unbox_Any, _module.ImportType(type)); - } - else - { - processor.Emit(OpCodes.Castclass, CreateGenericInstanceIfNecessary(type, genericParams)); - } - } - - TypeReference CreateGenericInstanceWithParameters(TypeDefinition typeDef) - { - if (typeDef.GenericParameters.Any()) - { - var genericInstance = new GenericInstanceType(typeDef); - - foreach (var parameter in typeDef.GenericParameters) - { - genericInstance.GenericArguments.Add(parameter); - } - - return genericInstance; - } - - return typeDef; - } - - MethodDefinition TryAddFactoryMethod( - TypeDefinition typeDef, ReflectionTypeInfo typeInfo) - { - if (typeInfo.Type.GetParentTypes().Any(x => x.FullName == "UnityEngine.Component")) - { - Assert.That(typeInfo.InjectConstructor.Parameters.IsEmpty()); - return null; - } - - if (typeInfo.InjectConstructor.ConstructorInfo == null) - { - // static classes, abstract types - return null; - } - - var factoryMethod = new MethodDefinition( - TypeAnalyzer.ReflectionBakingFactoryMethodName, - MethodAttributes.Private | MethodAttributes.HideBySig | - MethodAttributes.Static, - _module.TypeSystem.Object); - - var p1 = new ParameterDefinition(_objectArrayType); - p1.Name = "P_0"; - factoryMethod.Parameters.Add(p1); - - var body = factoryMethod.Body; - body.InitLocals = true; - - var processor = body.GetILProcessor(); - - var returnValueVar = new VariableDefinition(_module.TypeSystem.Object); - body.Variables.Add(returnValueVar); - - processor.Emit(OpCodes.Nop); - - Assert.IsNotNull(typeInfo.InjectConstructor); - - var args = typeInfo.InjectConstructor.Parameters; - - for (int i = 0; i < args.Count; i++) - { - var arg = args[i]; - - processor.Emit(OpCodes.Ldarg_0); - processor.Emit(OpCodes.Ldc_I4, i); - processor.Emit(OpCodes.Ldelem_Ref); - - EmitCastOperation( - processor, arg.ParameterInfo.ParameterType, typeDef.GenericParameters); - } - - processor.Emit(OpCodes.Newobj, _module.Import(typeInfo.InjectConstructor.ConstructorInfo)); - - processor.Emit(OpCodes.Stloc_0); - processor.Emit(OpCodes.Ldloc_S, returnValueVar); - processor.Emit(OpCodes.Ret); - - typeDef.Methods.Add(factoryMethod); - - return factoryMethod; - } - - void AddPostInjectMethodBody( - ILProcessor processor, ReflectionTypeInfo.InjectMethodInfo postInjectInfo, TypeDefinition typeDef, TypeReference genericTypeDef) - { - processor.Emit(OpCodes.Nop); - - TypeReference declaringTypeDef; - MethodReference actualMethodDef; - - if (!TryFindLocalMethod( - genericTypeDef, postInjectInfo.MethodInfo.Name, out declaringTypeDef, out actualMethodDef)) - { - throw Assert.CreateException(); - } - - processor.Emit(OpCodes.Ldarg_0); - processor.Emit(OpCodes.Castclass, declaringTypeDef); - - for (int k = 0; k < postInjectInfo.Parameters.Count; k++) - { - var injectInfo = postInjectInfo.Parameters[k]; - - processor.Emit(OpCodes.Ldarg_1); - processor.Emit(OpCodes.Ldc_I4, k); - processor.Emit(OpCodes.Ldelem_Ref); - - EmitCastOperation(processor, injectInfo.ParameterInfo.ParameterType, typeDef.GenericParameters); - } - - processor.Emit(OpCodes.Callvirt, actualMethodDef); - processor.Emit(OpCodes.Ret); - } - - MethodDefinition AddPostInjectMethod( - string name, ReflectionTypeInfo.InjectMethodInfo postInjectInfo, TypeDefinition typeDef, TypeReference genericTypeDef) - { - var methodDef = new MethodDefinition( - name, - MethodAttributes.Private | MethodAttributes.HideBySig | - MethodAttributes.Static, - _module.TypeSystem.Void); - - var p1 = new ParameterDefinition(_module.TypeSystem.Object); - p1.Name = "P_0"; - methodDef.Parameters.Add(p1); - - var p2 = new ParameterDefinition(_objectArrayType); - p2.Name = "P_1"; - methodDef.Parameters.Add(p2); - - var body = methodDef.Body; - var processor = body.GetILProcessor(); - - AddPostInjectMethodBody(processor, postInjectInfo, typeDef, genericTypeDef); - - typeDef.Methods.Add(methodDef); - - return methodDef; - } - - List AddPostInjectMethods( - TypeDefinition typeDef, TypeReference genericTypeDef, ReflectionTypeInfo typeInfo) - { - var postInjectMethods = new List(); - - for (int i = 0; i < typeInfo.InjectMethods.Count; i++) - { - postInjectMethods.Add( - AddPostInjectMethod( - TypeAnalyzer.ReflectionBakingInjectMethodPrefix + i, typeInfo.InjectMethods[i], typeDef, genericTypeDef)); - } - - return postInjectMethods; - } - - void EmitSetterMethod( - ILProcessor processor, MemberInfo memberInfo, TypeDefinition typeDef, TypeReference genericTypeDef) - { - processor.Emit(OpCodes.Nop); - - processor.Emit(OpCodes.Ldarg_0); - processor.Emit(OpCodes.Castclass, genericTypeDef); - - processor.Emit(OpCodes.Ldarg_1); - - if (memberInfo is FieldInfo) - { - var fieldInfo = (FieldInfo)memberInfo; - - EmitCastOperation(processor, fieldInfo.FieldType, typeDef.GenericParameters); - - processor.Emit(OpCodes.Stfld, FindLocalField(genericTypeDef, fieldInfo.Name)); - } - else - { - var propertyInfo = (PropertyInfo)memberInfo; - - EmitCastOperation(processor, propertyInfo.PropertyType, typeDef.GenericParameters); - - processor.Emit(OpCodes.Callvirt, FindLocalPropertySetMethod(genericTypeDef, propertyInfo.Name)); - } - - processor.Emit(OpCodes.Ret); - } - - MethodDefinition AddSetterMethod( - string name, MemberInfo memberInfo, TypeDefinition typeDef, TypeReference genericTypeDef) - { - var methodDef = new MethodDefinition( - name, - MethodAttributes.Private | MethodAttributes.HideBySig | - MethodAttributes.Static, - _module.TypeSystem.Void); - - var p1 = new ParameterDefinition(_module.TypeSystem.Object); - p1.Name = "P_0"; - methodDef.Parameters.Add(p1); - - var p2 = new ParameterDefinition(_module.TypeSystem.Object); - p2.Name = "P_1"; - methodDef.Parameters.Add(p2); - - methodDef.Body.InitLocals = true; - - EmitSetterMethod( - methodDef.Body.GetILProcessor(), memberInfo, typeDef, genericTypeDef); - - typeDef.Methods.Add(methodDef); - - return methodDef; - } - - List AddPropertySetters( - TypeDefinition typeDef, TypeReference genericTypeDef, ReflectionTypeInfo typeInfo) - { - var methodDefs = new List(); - - for (int i = 0; i < typeInfo.InjectProperties.Count; i++) - { - methodDefs.Add( - AddSetterMethod( - TypeAnalyzer.ReflectionBakingPropertySetterPrefix + i, - typeInfo.InjectProperties[i].PropertyInfo, typeDef, genericTypeDef)); - } - - return methodDefs; - } - - List AddFieldSetters( - TypeDefinition typeDef, TypeReference genericTypeDef, ReflectionTypeInfo typeInfo) - { - var methodDefs = new List(); - - for (int i = 0; i < typeInfo.InjectFields.Count; i++) - { - methodDefs.Add( - AddSetterMethod( - TypeAnalyzer.ReflectionBakingFieldSetterPrefix + i, - typeInfo.InjectFields[i].FieldInfo, typeDef, genericTypeDef)); - } - - return methodDefs; - } - - void CreateGetInfoMethod( - TypeDefinition typeDef, TypeReference genericTypeDef, ReflectionTypeInfo typeInfo, - MethodDefinition factoryMethod, List fieldSetMethods, - List propertySetMethods, List postInjectMethods) - { - var getInfoMethodDef = new MethodDefinition( - TypeAnalyzer.ReflectionBakingGetInjectInfoMethodName, - MethodAttributes.Private | MethodAttributes.HideBySig | - MethodAttributes.Static, - _zenjectTypeInfoType); - - typeDef.Methods.Add(getInfoMethodDef); - - getInfoMethodDef.CustomAttributes.Add( - new CustomAttribute(_preserveConstructor)); - - var returnValueVar = new VariableDefinition(_module.TypeSystem.Object); - - var body = getInfoMethodDef.Body; - - body.Variables.Add(returnValueVar); - body.InitLocals = true; - - var instructions = new List(); - - instructions.Add(Instruction.Create(OpCodes.Ldtoken, genericTypeDef)); - instructions.Add(Instruction.Create(OpCodes.Call, _getTypeFromHandleMethod)); - - if (factoryMethod == null) - { - instructions.Add(Instruction.Create(OpCodes.Ldnull)); - } - else - { - instructions.Add(Instruction.Create(OpCodes.Ldnull)); - instructions.Add(Instruction.Create(OpCodes.Ldftn, factoryMethod.ChangeDeclaringType(genericTypeDef))); - instructions.Add(Instruction.Create(OpCodes.Newobj, _funcConstructor)); - } - - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, typeInfo.InjectConstructor.Parameters.Count)); - instructions.Add(Instruction.Create(OpCodes.Newarr, _injectableInfoType)); - - for (int i = 0; i < typeInfo.InjectConstructor.Parameters.Count; i++) - { - var injectableInfo = typeInfo.InjectConstructor.Parameters[i].InjectableInfo; - - instructions.Add(Instruction.Create(OpCodes.Dup)); - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, i)); - - EmitNewInjectableInfoInstructions( - instructions, injectableInfo, typeDef); - - instructions.Add(Instruction.Create(OpCodes.Stelem_Ref)); - } - - instructions.Add(Instruction.Create(OpCodes.Newobj, _constructorInfoConstructor)); - - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, typeInfo.InjectMethods.Count)); - instructions.Add(Instruction.Create(OpCodes.Newarr, _injectMethodInfoType)); - - Assert.IsEqual(postInjectMethods.Count, typeInfo.InjectMethods.Count); - - for (int i = 0; i < typeInfo.InjectMethods.Count; i++) - { - var injectMethodInfo = typeInfo.InjectMethods[i]; - - instructions.Add(Instruction.Create(OpCodes.Dup)); - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, i)); - - AddInjectableMethodInstructions( - instructions, injectMethodInfo, typeDef, genericTypeDef, postInjectMethods[i]); - - instructions.Add(Instruction.Create(OpCodes.Stelem_Ref)); - } - - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, fieldSetMethods.Count + propertySetMethods.Count)); - instructions.Add(Instruction.Create(OpCodes.Newarr, _injectMemberInfoType)); - - for (int i = 0; i < fieldSetMethods.Count; i++) - { - var injectField = typeInfo.InjectFields[i]; - - instructions.Add(Instruction.Create(OpCodes.Dup)); - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, i)); - - AddInjectableMemberInstructions( - instructions, - injectField.InjectableInfo, injectField.FieldInfo.Name, - typeDef, genericTypeDef, fieldSetMethods[i]); - - instructions.Add(Instruction.Create(OpCodes.Stelem_Ref)); - } - - for (int i = 0; i < propertySetMethods.Count; i++) - { - var injectProperty = typeInfo.InjectProperties[i]; - - instructions.Add(Instruction.Create(OpCodes.Dup)); - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, fieldSetMethods.Count + i)); - - AddInjectableMemberInstructions( - instructions, - injectProperty.InjectableInfo, - injectProperty.PropertyInfo.Name, typeDef, genericTypeDef, - propertySetMethods[i]); - - instructions.Add(Instruction.Create(OpCodes.Stelem_Ref)); - } - - instructions.Add(Instruction.Create(OpCodes.Newobj, _zenjectTypeInfoConstructor)); - - instructions.Add(Instruction.Create(OpCodes.Stloc_0)); - instructions.Add(Instruction.Create(OpCodes.Ldloc_S, returnValueVar)); - instructions.Add(Instruction.Create(OpCodes.Ret)); - - var processor = body.GetILProcessor(); - - foreach (var instruction in instructions) - { - processor.Append(instruction); - } - } - - MethodReference FindLocalPropertySetMethod( - TypeReference specificTypeRef, string memberName) - { - foreach (var typeRef in specificTypeRef.GetSpecificBaseTypesAndSelf()) - { - var candidatePropertyDef = typeRef.Resolve().Properties - .Where(x => x.Name == memberName).SingleOrDefault(); - - if (candidatePropertyDef != null) - { - return candidatePropertyDef.SetMethod.ChangeDeclaringType(typeRef); - } - } - - throw Assert.CreateException(); - } - - FieldReference FindLocalField( - TypeReference specificTypeRef, string fieldName) - { - foreach (var typeRef in specificTypeRef.GetSpecificBaseTypesAndSelf()) - { - var candidateFieldDef = typeRef.Resolve().Fields - .Where(x => x.Name == fieldName).SingleOrDefault(); - - if (candidateFieldDef != null) - { - return candidateFieldDef.ChangeDeclaringType(typeRef); - } - } - - throw Assert.CreateException(); - } - - bool TryFindLocalMethod( - TypeReference specificTypeRef, string methodName, out TypeReference declaringTypeRef, out MethodReference methodRef) - { - foreach (var typeRef in specificTypeRef.GetSpecificBaseTypesAndSelf()) - { - var candidateMethodDef = typeRef.Resolve().Methods - .Where(x => x.Name == methodName).SingleOrDefault(); - - if (candidateMethodDef != null) - { - declaringTypeRef = typeRef; - methodRef = candidateMethodDef.ChangeDeclaringType(typeRef); - return true; - } - } - - declaringTypeRef = null; - methodRef = null; - return false; - } - - void AddObjectInstructions( - List instructions, - object identifier) - { - if (identifier == null) - { - instructions.Add(Instruction.Create(OpCodes.Ldnull)); - } - else if (identifier is string) - { - instructions.Add(Instruction.Create(OpCodes.Ldstr, (string)identifier)); - } - else if (identifier is int) - { - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, (int)identifier)); - instructions.Add(Instruction.Create(OpCodes.Box, _module.Import(typeof(int)))); - } - else if (identifier.GetType().IsEnum) - { - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, (int)identifier)); - instructions.Add(Instruction.Create(OpCodes.Box, _module.Import(identifier.GetType()))); - } - else - { - throw Assert.CreateException( - "Cannot process values with type '{0}' currently. Feel free to add support for this and submit a pull request to github.", identifier.GetType()); - } - } - - TypeReference CreateGenericInstanceIfNecessary( - Type memberType, Collection genericParams) - { - if (!memberType.ContainsGenericParameters) - { - return _module.Import(memberType); - } - - if (memberType.IsGenericParameter) - { - return genericParams[memberType.GenericParameterPosition]; - } - - if (memberType.IsArray) - { - return new ArrayType( - CreateGenericInstanceIfNecessary(memberType.GetElementType(), genericParams), memberType.GetArrayRank()); - } - - var genericMemberType = memberType.GetGenericTypeDefinition(); - - var genericInstance = new GenericInstanceType(_module.Import(genericMemberType)); - - foreach (var arg in memberType.GenericArguments()) - { - genericInstance.GenericArguments.Add( - CreateGenericInstanceIfNecessary(arg, genericParams)); - } - - return genericInstance; - } - - void AddInjectableMemberInstructions( - List instructions, - InjectableInfo injectableInfo, string name, - TypeDefinition typeDef, TypeReference genericTypeDef, - MethodDefinition methodDef) - { - instructions.Add(Instruction.Create(OpCodes.Ldnull)); - instructions.Add(Instruction.Create(OpCodes.Ldftn, methodDef.ChangeDeclaringType(genericTypeDef))); - instructions.Add(Instruction.Create(OpCodes.Newobj, _funcMemberSetter)); - - EmitNewInjectableInfoInstructions( - instructions, injectableInfo, typeDef); - - instructions.Add(Instruction.Create(OpCodes.Newobj, _injectMemberInfoConstructor)); - } - - void AddInjectableMethodInstructions( - List instructions, - ReflectionTypeInfo.InjectMethodInfo injectMethod, - TypeDefinition typeDef, TypeReference genericTypeDef, - MethodDefinition methodDef) - { - instructions.Add(Instruction.Create(OpCodes.Ldnull)); - instructions.Add(Instruction.Create(OpCodes.Ldftn, methodDef.ChangeDeclaringType(genericTypeDef))); - instructions.Add(Instruction.Create(OpCodes.Newobj, _funcPostInject)); - - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, injectMethod.Parameters.Count)); - instructions.Add(Instruction.Create(OpCodes.Newarr, _injectableInfoType)); - - for (int i = 0; i < injectMethod.Parameters.Count; i++) - { - var injectableInfo = injectMethod.Parameters[i].InjectableInfo; - - instructions.Add(Instruction.Create(OpCodes.Dup)); - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, i)); - - EmitNewInjectableInfoInstructions( - instructions, injectableInfo, typeDef); - - instructions.Add(Instruction.Create(OpCodes.Stelem_Ref)); - } - - instructions.Add(Instruction.Create(OpCodes.Ldstr, injectMethod.MethodInfo.Name)); - - instructions.Add(Instruction.Create(OpCodes.Newobj, _injectMethodInfoConstructor)); - } - - void EmitNewInjectableInfoInstructions( - List instructions, - InjectableInfo injectableInfo, - TypeDefinition typeDef) - { - if (injectableInfo.Optional) - { - instructions.Add(Instruction.Create(OpCodes.Ldc_I4_1)); - } - else - { - instructions.Add(Instruction.Create(OpCodes.Ldc_I4_0)); - } - - AddObjectInstructions(instructions, injectableInfo.Identifier); - - instructions.Add(Instruction.Create(OpCodes.Ldstr, injectableInfo.MemberName)); - - instructions.Add(Instruction.Create(OpCodes.Ldtoken, CreateGenericInstanceIfNecessary(injectableInfo.MemberType, typeDef.GenericParameters))); - - instructions.Add(Instruction.Create(OpCodes.Call, _getTypeFromHandleMethod)); - - AddObjectInstructions(instructions, injectableInfo.DefaultValue); - - instructions.Add(Instruction.Create(OpCodes.Ldc_I4, (int)injectableInfo.SourceType)); - - instructions.Add(Instruction.Create(OpCodes.Newobj, _injectableInfoConstructor)); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs.meta deleted file mode 100644 index eca793eb1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Common/ReflectionBakingModuleEditor.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: a664c0011937115449c81d8ca4a2f6c7 -timeCreated: 1538185954 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib.meta deleted file mode 100644 index b626acfc2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3879d05eafe89b844a5fc0db8cfd9c55 -folderAsset: yes -timeCreated: 1537245053 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll deleted file mode 100644 index fef252d3c..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll.meta deleted file mode 100644 index c41d1abe8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: 6b309800e744d8c46ad868763fc9c429 -timeCreated: 1538196675 -licenseType: Pro -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - isPreloaded: 0 - isOverridable: 0 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll deleted file mode 100644 index 06b2d9ee3..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll.meta deleted file mode 100644 index dc956ce5e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: b6433e8939bdf284693b7fa9b719bfcd -timeCreated: 1538196675 -licenseType: Pro -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - isPreloaded: 0 - isOverridable: 0 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll deleted file mode 100644 index c7e88a416..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll.meta deleted file mode 100644 index ce73fffd0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: 58ca997f0a3dfb84590febf580194214 -timeCreated: 1538196674 -licenseType: Pro -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - isPreloaded: 0 - isOverridable: 0 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll deleted file mode 100644 index 67ce7b77c..000000000 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll and /dev/null differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll.meta deleted file mode 100644 index 562c49f9c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Lib/Zenject.ReflectionBaking.Mono.Cecil.dll.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: 0fdc9d5333ed94347bd076c3946dd19d -timeCreated: 1538196673 -licenseType: Pro -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - isPreloaded: 0 - isOverridable: 0 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - DefaultValueInitialized: true - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity.meta deleted file mode 100644 index 55f44ff9f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: bdf7617b0450e55498cedcfc70529ff5 -folderAsset: yes -timeCreated: 1537245054 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs deleted file mode 100644 index f5f9e9736..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using ModestTree; -using UnityEditorInternal; -using UnityEngine; - -namespace Zenject.ReflectionBaking -{ - public class AssemblyPathRegistry - { - static List _assemblies; - - public static List GetAllGeneratedAssemblyRelativePaths() - { - if (_assemblies == null) - { - _assemblies = LookupAllGeneratedAssemblyPaths(); - Assert.IsNotNull(_assemblies); - } - - return _assemblies; - } - - static bool IsManagedAssembly(string systemPath) - { - DllType dllType = InternalEditorUtility.DetectDotNetDll(systemPath); - return dllType != DllType.Unknown && dllType != DllType.Native; - } - - static List LookupAllGeneratedAssemblyPaths() - { - var assemblies = new List(20); - - // We could also add the ones in the project but we probably don't want to edit those - //FindAssemblies(Application.dataPath, 120, assemblies); - - FindAssemblies(Application.dataPath + "/../Library/ScriptAssemblies/", 2, assemblies); - - return assemblies; - } - - public static void FindAssemblies(string systemPath, int maxDepth, List result) - { - if (maxDepth > 0) - { - if (Directory.Exists(systemPath)) - { - var dirInfo = new DirectoryInfo(systemPath); - - result.AddRange( - dirInfo.GetFiles().Select(x => x.FullName) - .Where(IsManagedAssembly) - .Select(ReflectionBakingInternalUtil.ConvertAbsoluteToAssetPath)); - - var directories = dirInfo.GetDirectories(); - - for (int i = 0; i < directories.Length; i++) - { - DirectoryInfo current = directories[i]; - - FindAssemblies(current.FullName, maxDepth - 1, result); - } - } - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs.meta deleted file mode 100644 index 145ab1b25..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/AssemblyPathRegistry.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: f96372c95411c904bb55ba67b55e0c84 -timeCreated: 1537003252 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs deleted file mode 100644 index c06f6dcbc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; -using System.Linq; -using ModestTree; -using UnityEditor; -using UnityEditor.Compilation; -using UnityEngine; -using Zenject.ReflectionBaking.Mono.Cecil; -using Debug = UnityEngine.Debug; - -namespace Zenject.ReflectionBaking -{ - public static class ReflectionBakingBuildObserver - { - [InitializeOnLoadMethod] - public static void Initialize() - { - CompilationPipeline.assemblyCompilationFinished += OnAssemblyCompiled; - } - - static void OnAssemblyCompiled(string assemblyAssetPath, CompilerMessage[] messages) - { -#if !UNITY_2018_1_OR_NEWER - if (Application.isEditor && !BuildPipeline.isBuildingPlayer) - { - return; - } -#endif - - if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.WSAPlayer) - { - Log.Warn("Zenject reflection baking skipped because it is not currently supported on WSA platform!"); - } - else - { - TryWeaveAssembly(assemblyAssetPath); - } - } - - static void TryWeaveAssembly(string assemblyAssetPath) - { - var settings = ReflectionBakingInternalUtil.TryGetEnabledSettingsInstance(); - - if (settings == null) - { - return; - } - - if (settings.AllGeneratedAssemblies && settings.ExcludeAssemblies.Contains(assemblyAssetPath)) - { - return; - } - - if (!settings.AllGeneratedAssemblies && !settings.IncludeAssemblies.Contains(assemblyAssetPath)) - { - return; - } - - var stopwatch = new Stopwatch(); - stopwatch.Start(); - - var assemblyFullPath = ReflectionBakingInternalUtil.ConvertAssetPathToSystemPath(assemblyAssetPath); - - var readerParameters = new ReaderParameters - { - AssemblyResolver = new UnityAssemblyResolver(), - // Is this necessary? - //ReadSymbols = true, - }; - - var module = ModuleDefinition.ReadModule(assemblyFullPath, readerParameters); - - var assemblyRefNames = module.AssemblyReferences.Select(x => x.Name.ToLower()).ToList(); - - if (!assemblyRefNames.Contains("zenject-usage")) - { - // Zenject-usage is used by the generated methods - // Important that we do this check otherwise we can corrupt some dlls that don't have access to it - return; - } - - var assemblyName = Path.GetFileNameWithoutExtension(assemblyAssetPath); - var assembly = AppDomain.CurrentDomain.GetAssemblies() - .Where(x => x.GetName().Name == assemblyName).OnlyOrDefault(); - - Assert.IsNotNull(assembly, "Could not find unique assembly '{0}' in currently loaded list of assemblies", assemblyName); - - int numTypesChanged = ReflectionBakingModuleEditor.WeaveAssembly( - module, assembly, settings.NamespacePatterns); - - if (numTypesChanged > 0) - { - var writerParams = new WriterParameters() - { - // Is this necessary? - //WriteSymbols = true - }; - - module.Write(assemblyFullPath, writerParams); - - Debug.Log("Added reflection baking to '{0}' types in assembly '{1}', took {2:0.00} seconds" - .Fmt(numTypesChanged, Path.GetFileName(assemblyAssetPath), stopwatch.Elapsed.TotalSeconds)); - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs.meta deleted file mode 100644 index 5dd24cdcd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingBuildObserver.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 374dbffd3e3c6504489ada7d14aa4006 -timeCreated: 1537501691 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs deleted file mode 100644 index 97ae6fa0f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.IO; -using System.Reflection; -using ModestTree; -using UnityEditor; -using UnityEngine; - -namespace Zenject.ReflectionBaking -{ - public static class ReflectionBakingInternalUtil - { - public static string ConvertAssetPathToSystemPath(string assetPath) - { - string path = Application.dataPath; - int pathLength = path.Length; - path = path.Substring(0, pathLength - /* Assets */ 6); - path = Path.Combine(path, assetPath); - return path; - } - - public static ZenjectReflectionBakingSettings TryGetEnabledSettingsInstance() - { - string[] guids = AssetDatabase.FindAssets("t:ZenjectReflectionBakingSettings"); - - if (guids.IsEmpty()) - { - return null; - } - - ZenjectReflectionBakingSettings enabledSettings = null; - - foreach (var guid in guids) - { - var candidate = AssetDatabase.LoadAssetAtPath( - AssetDatabase.GUIDToAssetPath(guid)); - - if ((Application.isEditor && candidate.IsEnabledInEditor) || (BuildPipeline.isBuildingPlayer && candidate.IsEnabledInBuilds)) - { - Assert.IsNull(enabledSettings, "Found multiple enabled ZenjectReflectionBakingSettings objects! Please disable/delete one to continue."); - enabledSettings = candidate; - } - } - - return enabledSettings; - } - - public static string ConvertAbsoluteToAssetPath(string systemPath) - { - var projectPath = Application.dataPath; - - // Remove 'Assets' - projectPath = projectPath.Substring(0, projectPath.Length - /* Assets */ 6); - - int systemPathLength = systemPath.Length; - int assetPathLength = systemPathLength - projectPath.Length; - - Assert.That(assetPathLength > 0, "Unexpect path '{0}'", systemPath); - - return systemPath.Substring(projectPath.Length, assetPathLength); - } - - public static void TryForceUnityFullCompile() - { - Type compInterface = typeof(UnityEditor.Editor).Assembly.GetType( - "UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface"); - - if (compInterface != null) - { - var dirtyAllScriptsMethod = compInterface.GetMethod( - "DirtyAllScripts", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); - - dirtyAllScriptsMethod.Invoke(null, null); - } - - UnityEditor.AssetDatabase.Refresh(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs.meta deleted file mode 100644 index d6416f9e8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingInternalUtil.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 68724c9557073844fb7c3f088c588d32 -timeCreated: 1537003252 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs deleted file mode 100644 index 3edb7c74f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs +++ /dev/null @@ -1,24 +0,0 @@ -#if !NOT_UNITY3D - -using System.IO; -using UnityEditor; -using UnityEngine; -using Zenject.Internal; - -namespace Zenject.ReflectionBaking -{ - public static class ReflectionBakingMenuItems - { - [MenuItem("Assets/Create/Zenject/Reflection Baking Settings", false, 100)] - public static void CreateReflectionBakingSettings() - { - var folderPath = ZenUnityEditorUtil.GetCurrentDirectoryAssetPathFromSelection(); - - var config = ScriptableObject.CreateInstance(); - - ZenUnityEditorUtil.SaveScriptableObjectAsset( - Path.Combine(folderPath, "ZenjectReflectionBakingSettings.asset"), config); - } - } -} -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs.meta deleted file mode 100644 index c0d6a9400..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ReflectionBakingMenuItems.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 549215a3ba27806449b2b1542fdffc03 -timeCreated: 1537690031 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs deleted file mode 100644 index 7ada26830..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Reflection; -using Zenject.ReflectionBaking.Mono.Cecil; - -namespace Zenject.ReflectionBaking -{ - public class UnityAssemblyResolver : BaseAssemblyResolver - { - readonly IDictionary _appDomainAssemblyLocations; - readonly IDictionary _cache; - - public UnityAssemblyResolver() - { - _appDomainAssemblyLocations = new Dictionary(); - _cache = new Dictionary(); - - AppDomain domain = AppDomain.CurrentDomain; - - Assembly[] assemblies = domain.GetAssemblies(); - - for (int i = 0; i < assemblies.Length; i++) - { -#if NET_4_6 - if (assemblies[i].IsDynamic) - { - continue; - } -#endif - - _appDomainAssemblyLocations[assemblies[i].FullName] = assemblies[i].Location; - - var assemblyPath = assemblies[i].Location; - - if (!string.IsNullOrEmpty(assemblyPath)) { - AddSearchDirectory(Path.GetDirectoryName(assemblies[i].Location)); - } - } - } - - public override AssemblyDefinition Resolve(AssemblyNameReference name) - { - AssemblyDefinition assemblyDef = FindAssemblyDefinition(name.FullName, null); - - if (assemblyDef == null) - { - assemblyDef = base.Resolve(name); - _cache[name.FullName] = assemblyDef; - } - - return assemblyDef; - } - - public override AssemblyDefinition Resolve(AssemblyNameReference name, ReaderParameters parameters) - { - AssemblyDefinition assemblyDef = FindAssemblyDefinition(name.FullName, parameters); - - if (assemblyDef == null) - { - assemblyDef = base.Resolve(name, parameters); - _cache[name.FullName] = assemblyDef; - } - - return assemblyDef; - } - - /// Searches for AssemblyDefinition in our cache, and failing that, - /// looks for a known location. Returns null if both attempts fail. - AssemblyDefinition FindAssemblyDefinition(string fullName, ReaderParameters parameters) - { - if (fullName == null) - { - throw new ArgumentNullException("fullName"); - } - - AssemblyDefinition assemblyDefinition; - - // Look in cache first - if (_cache.TryGetValue(fullName, out assemblyDefinition)) - { - return assemblyDefinition; - } - - // Try to use known location - - string location; - - if (_appDomainAssemblyLocations.TryGetValue(fullName, out location)) - { - if (parameters != null) - { - assemblyDefinition = AssemblyDefinition.ReadAssembly(location, parameters); - } - else - { - assemblyDefinition = AssemblyDefinition.ReadAssembly(location); - } - - _cache[fullName] = assemblyDefinition; - - return assemblyDefinition; - } - - return null; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs.meta deleted file mode 100644 index e059b3789..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: b107233111f831043b3d5983fe6f1b25 -timeCreated: 1537934945 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs deleted file mode 100644 index 39cac55fb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; - -namespace Zenject.ReflectionBaking -{ - public class ZenjectReflectionBakingSettings : ScriptableObject - { - [SerializeField] - bool _isEnabledInBuilds = true; - - [SerializeField] - bool _isEnabledInEditor = false; - - [SerializeField] - bool _allGeneratedAssemblies = true; - - [SerializeField] - List _includeAssemblies = null; - - [SerializeField] - List _excludeAssemblies = null; - - [SerializeField] - List _namespacePatterns = null; - - public List NamespacePatterns - { - get { return _namespacePatterns; } - } - - public List IncludeAssemblies - { - get { return _includeAssemblies; } - } - - public List ExcludeAssemblies - { - get { return _excludeAssemblies; } - } - - public bool IsEnabledInEditor - { - get { return _isEnabledInEditor; } - } - - public bool IsEnabledInBuilds - { - get { return _isEnabledInBuilds; } - } - - public bool AllGeneratedAssemblies - { - get { return _allGeneratedAssemblies; } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs.meta deleted file mode 100644 index 48127d17d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettings.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1ab372d6a005c8344b5d6b25dbc310ce -timeCreated: 1536333743 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs deleted file mode 100644 index cb5d14915..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs +++ /dev/null @@ -1,236 +0,0 @@ -using UnityEditor; -using UnityEditorInternal; -using UnityEngine; - -namespace Zenject.ReflectionBaking -{ - [CustomEditor(typeof(ZenjectReflectionBakingSettings))] - public class ZenjectReflectionBakingSettingsEditor : Editor - { - SerializedProperty _includeAssemblies; - SerializedProperty _excludeAssemblies; - SerializedProperty _namespacePatterns; - SerializedProperty _isEnabledInBuilds; - SerializedProperty _isEnabledInEditor; - SerializedProperty _allGeneratedAssemblies; - - // Lists - ReorderableList _includeAssembliesList; - ReorderableList _excludeAssembliesList; - ReorderableList _namespacePatternsList; - - // Layouts - Vector2 _logScrollPosition; - int _selectedLogIndex; - - bool _hasModifiedProperties; - - static GUIContent _includeAssembliesListHeaderContent = new GUIContent - { - text = "Include Assemblies", - tooltip = "The list of all the assemblies that will be editted to have reflection information directly embedded" - }; - - static GUIContent _excludeAssembliesListHeaderContent = new GUIContent - { - text = "Exclude Assemblies", - tooltip = "The list of all the assemblies that will not be editted" - }; - - static GUIContent _namespacePatternListHeaderContent = new GUIContent - { - text = "Namespace Patterns", - tooltip = "This list of Regex patterns will be compared to the name of each type in the given assemblies, and when a match is found that type will be editting to directly contain reflection information" - }; - - void OnEnable() - { - _includeAssemblies = serializedObject.FindProperty("_includeAssemblies"); - _excludeAssemblies = serializedObject.FindProperty("_excludeAssemblies"); - _namespacePatterns = serializedObject.FindProperty("_namespacePatterns"); - _isEnabledInEditor = serializedObject.FindProperty("_isEnabledInEditor"); - _isEnabledInBuilds = serializedObject.FindProperty("_isEnabledInBuilds"); - _allGeneratedAssemblies = serializedObject.FindProperty("_allGeneratedAssemblies"); - - _namespacePatternsList = new ReorderableList(serializedObject, _namespacePatterns); - _namespacePatternsList.drawHeaderCallback += OnNamespacePatternsDrawHeader; - _namespacePatternsList.drawElementCallback += OnNamespacePatternsDrawElement; - - _includeAssembliesList = new ReorderableList(serializedObject, _includeAssemblies); - _includeAssembliesList.drawHeaderCallback += OnIncludeWeavedAssemblyDrawHeader; - _includeAssembliesList.onAddCallback += OnIncludeWeavedAssemblyElementAdded; - _includeAssembliesList.drawElementCallback += OnIncludeAssemblyListDrawElement; - - _excludeAssembliesList = new ReorderableList(serializedObject, _excludeAssemblies); - _excludeAssembliesList.drawHeaderCallback += OnExcludeWeavedAssemblyDrawHeader; - _excludeAssembliesList.onAddCallback += OnExcludeWeavedAssemblyElementAdded; - _excludeAssembliesList.drawElementCallback += OnExcludeAssemblyListDrawElement; - } - - void OnNamespacePatternsDrawElement(Rect rect, int index, bool isActive, bool isFocused) - { - SerializedProperty indexProperty = _namespacePatterns.GetArrayElementAtIndex(index); - indexProperty.stringValue = EditorGUI.TextField(rect, indexProperty.stringValue); - } - - void OnExcludeAssemblyListDrawElement(Rect rect, int index, bool isActive, bool isFocused) - { - SerializedProperty indexProperty = _excludeAssemblies.GetArrayElementAtIndex(index); - EditorGUI.LabelField(rect, indexProperty.stringValue, EditorStyles.textArea); - } - - void OnIncludeAssemblyListDrawElement(Rect rect, int index, bool isActive, bool isFocused) - { - SerializedProperty indexProperty = _includeAssemblies.GetArrayElementAtIndex(index); - EditorGUI.LabelField(rect, indexProperty.stringValue, EditorStyles.textArea); - } - - void OnNamespacePatternsDrawHeader(Rect rect) - { - GUI.Label(rect, _namespacePatternListHeaderContent); - } - - void OnExcludeWeavedAssemblyDrawHeader(Rect rect) - { - GUI.Label(rect, _excludeAssembliesListHeaderContent); - } - - void OnIncludeWeavedAssemblyDrawHeader(Rect rect) - { - GUI.Label(rect, _includeAssembliesListHeaderContent); - } - - public override void OnInspectorGUI() - { - EditorGUI.BeginChangeCheck(); - { - GUILayout.Label("Settings", EditorStyles.boldLabel); - - EditorGUILayout.PropertyField(_isEnabledInBuilds, true); - - var oldIsEnabledInEditorValue = _isEnabledInEditor.boolValue; - EditorGUILayout.PropertyField(_isEnabledInEditor, true); - - if (oldIsEnabledInEditorValue != _isEnabledInEditor.boolValue) - { - ReflectionBakingInternalUtil.TryForceUnityFullCompile(); - } - -#if !UNITY_2018_1_OR_NEWER - if (_isEnabledInEditor.boolValue) - { - EditorGUILayout.HelpBox( - "Reflection baking inside unity editor requires Unity 2018+! It is however supported for builds", MessageType.Error); - } -#endif - EditorGUILayout.PropertyField(_allGeneratedAssemblies, true); - - if (_allGeneratedAssemblies.boolValue) - { - _excludeAssembliesList.DoLayoutList(); - - GUI.enabled = false; - - try - { - _includeAssembliesList.DoLayoutList(); - } - finally - { - GUI.enabled = true; - } - } - else - { - GUI.enabled = false; - - try - { - _excludeAssembliesList.DoLayoutList(); - } - finally - { - GUI.enabled = true; - } - - _includeAssembliesList.DoLayoutList(); - } - - _namespacePatternsList.DoLayoutList(); - } - - if (EditorGUI.EndChangeCheck()) - { - _hasModifiedProperties = true; - } - - if (_hasModifiedProperties) - { - _hasModifiedProperties = false; - ApplyModifiedProperties(); - } - } - - void ApplyModifiedProperties() - { - serializedObject.ApplyModifiedProperties(); - serializedObject.Update(); - } - - void OnExcludeWeavedAssemblyElementAdded(ReorderableList list) - { - OnAssemblyElementAdded(_excludeAssemblies, list); - } - - void OnIncludeWeavedAssemblyElementAdded(ReorderableList list) - { - OnAssemblyElementAdded(_includeAssemblies, list); - } - - void OnAssemblyElementAdded(SerializedProperty listProperty, ReorderableList list) - { - GenericMenu menu = new GenericMenu(); - - var paths = AssemblyPathRegistry.GetAllGeneratedAssemblyRelativePaths(); - - for (int i = 0; i < paths.Count; i++) - { - var path = paths[i]; - - bool foundMatch = false; - - for (int k = 0; k < listProperty.arraySize; k++) - { - SerializedProperty current = listProperty.GetArrayElementAtIndex(k); - - if (path == current.stringValue) - { - foundMatch = true; - break; - } - } - - if (!foundMatch) - { - GUIContent content = new GUIContent(path); - menu.AddItem(content, false, p => OnWeavedAssemblyAdded(listProperty, p), path); - } - } - - if (menu.GetItemCount() == 0) - { - menu.AddDisabledItem(new GUIContent("[All Assemblies Added]")); - } - - menu.ShowAsContext(); - } - - void OnWeavedAssemblyAdded(SerializedProperty listProperty, object path) - { - listProperty.arraySize++; - SerializedProperty weaved = listProperty.GetArrayElementAtIndex(listProperty.arraySize - 1); - weaved.stringValue = ((string)path).Replace("\\", "/"); - ApplyModifiedProperties(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs.meta deleted file mode 100644 index 32cc2bd0b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Unity/ZenjectReflectionBakingSettingsEditor.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 90683e755a104ed4ab5841ef7bb58742 -timeCreated: 1538185954 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef deleted file mode 100644 index 4dc72cd74..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "Zenject-ReflectionBaking-Editor", - "references": [ - "Zenject", - "Zenject-Editor" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [] -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef.meta deleted file mode 100644 index 4b6a6d294..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking-Editor.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 14f8b558cd941e545961d1d8d31254f0 -timeCreated: 1536994295 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj deleted file mode 100644 index 213938f9d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj +++ /dev/null @@ -1,81 +0,0 @@ - - - - - Debug - AnyCPU - {343BA74F-10FD-489D-A6FD-A3FD2B436D98} - Library - Properties - Zenject - Zenject-ReflectionBaking - v4.6 - 512 - - - - true - full - false - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Debug\ - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Debug\ - ..\..\..\..\..\..\NonUnityBuild\Bin\Debug\ - TRACE;DEBUG;NOT_UNITY3D;NET_4_6 - prompt - 4 - false - - - pdbonly - true - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Release\ - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Release\ - ..\..\..\..\..\..\NonUnityBuild\Bin\Release\ - TRACE;NOT_UNITY3D - prompt - 4 - false - - - - - - - - - - Lib\Zenject.ReflectionBaking.Mono.Cecil.dll - - - Lib\Zenject.ReflectionBaking.Mono.Cecil.Mdb.dll - - - Lib\Zenject.ReflectionBaking.Mono.Cecil.Pdb.dll - - - Lib\Zenject.ReflectionBaking.Mono.Cecil.Rocks.dll - - - - - {e22b1cbf-7e4d-48bd-953b-2b730bd9ff13} - Zenject-usage - - - {46f25a62-2e29-48cb-95f3-bdbcb0976ddc} - Zenject - - - - - - - - - \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj.meta deleted file mode 100644 index 91982f41a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/ReflectionBaking/Zenject-ReflectionBaking.csproj.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 91b0b4c77fdd1d24aa1af646e9d29960 -timeCreated: 1536994288 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals.meta deleted file mode 100644 index 5e438f48c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 3b5451f8192289f4d91b4764b30bf5e4 -folderAsset: yes -timeCreated: 1521300601 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal.meta deleted file mode 100644 index a25c5954a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ab31f5a16678ab042ae89fdbb0efec56 -folderAsset: yes -timeCreated: 1521266917 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders.meta deleted file mode 100755 index 48ff9a230..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: cc112bf254895114bb60868a302a3cf7 -folderAsset: yes -timeCreated: 1521266917 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal.meta deleted file mode 100755 index f120234b3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 610ec45090eac884ba824be81ada42fb -folderAsset: yes -timeCreated: 1521277428 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs deleted file mode 100755 index 31fa9ca34..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using ModestTree; - -namespace Zenject -{ - public class BindSignalFromBinder - { - readonly BindStatement _bindStatement; - readonly Func> _methodGetter; - readonly DiContainer _container; - readonly SignalBindingBindInfo _signalBindInfo; - - public BindSignalFromBinder( - SignalBindingBindInfo signalBindInfo, BindStatement bindStatement, Func> methodGetter, - DiContainer container) - { - _signalBindInfo = signalBindInfo; - _bindStatement = bindStatement; - _methodGetter = methodGetter; - _container = container; - } - - public SignalCopyBinder FromResolve() - { - return From(x => x.FromResolve().AsCached()); - } - - public SignalCopyBinder FromResolveAll() - { - return From(x => x.FromResolveAll().AsCached()); - } - - public SignalCopyBinder FromNew() - { - return From(x => x.FromNew().AsCached()); - } - - public SignalCopyBinder From(Action> objectBindCallback) - { - Assert.That(!_bindStatement.HasFinalizer); - _bindStatement.SetFinalizer(new NullBindingFinalizer()); - - var objectLookupId = Guid.NewGuid(); - - // Very important here that we use NoFlush otherwise the main binding will be finalized early - var objectBinder = _container.BindNoFlush().WithId(objectLookupId); - - objectBindCallback(objectBinder); - - // We need to do this to make sure SignalCallbackWithLookupWrapper does not have - // generic types to avoid AOT issues - Func> methodGetterMapper = - obj => s => _methodGetter((TObject)obj)((TSignal)s); - - var wrapperBinder = _container.Bind() - .To() - .AsCached() - .WithArguments(_signalBindInfo, typeof(TObject), objectLookupId, methodGetterMapper) - .NonLazy(); - - var copyBinder = new SignalCopyBinder( wrapperBinder.BindInfo); - // Make sure if they use one of the Copy/Move methods that it applies to both bindings - copyBinder.AddCopyBindInfo(objectBinder.BindInfo); - return copyBinder; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs.meta deleted file mode 100755 index 7fd0cf9eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalFromBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c779f758eaadfd54fb9c66f7acc75716 -timeCreated: 1521288279 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs deleted file mode 100755 index 01568a444..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using ModestTree; - -namespace Zenject -{ - public class BindSignalIdToBinder : BindSignalToBinder - { - public BindSignalIdToBinder(DiContainer container, SignalBindingBindInfo signalBindInfo) - : base(container, signalBindInfo) - { - } - - public BindSignalToBinder WithId(object identifier) - { - SignalBindInfo.Identifier = identifier; - return this; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs.meta deleted file mode 100755 index 9e6e2ce3b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalIdToBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: ecce6d44c178e564c8937125741f3c8c -timeCreated: 1538401230 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs deleted file mode 100755 index 76ba5db58..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using ModestTree; - -namespace Zenject -{ - public class BindSignalToBinder - { - DiContainer _container; - BindStatement _bindStatement; - SignalBindingBindInfo _signalBindInfo; - - public BindSignalToBinder(DiContainer container, SignalBindingBindInfo signalBindInfo) - { - _container = container; - - _signalBindInfo = signalBindInfo; - // This will ensure that they finish the binding - _bindStatement = container.StartBinding(); - } - - protected SignalBindingBindInfo SignalBindInfo - { - get { return _signalBindInfo; } - } - - public SignalCopyBinder ToMethod(Action callback) - { - Assert.That(!_bindStatement.HasFinalizer); - _bindStatement.SetFinalizer(new NullBindingFinalizer()); - - var bindInfo = _container.Bind() - .To() - .AsCached() - // Note that there's a reason we don't just make SignalCallbackWrapper have a generic - // argument for signal type - because when using struct type signals it throws - // exceptions on AOT platforms - .WithArguments(_signalBindInfo, (Action)(o => callback((TSignal)o))) - .NonLazy().BindInfo; - - return new SignalCopyBinder(bindInfo); - } - - public SignalCopyBinder ToMethod(Action callback) - { - return ToMethod(signal => callback()); - } - - public BindSignalFromBinder ToMethod(Action handler) - { - return ToMethod(x => (Action)(s => handler(x, s))); - } - - public BindSignalFromBinder ToMethod(Func handlerGetter) - { - return ToMethod(x => (Action)(s => handlerGetter(x)())); - } - - public BindSignalFromBinder ToMethod(Func> handlerGetter) - { - return new BindSignalFromBinder( - _signalBindInfo, _bindStatement, handlerGetter, _container); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs.meta deleted file mode 100755 index 067de3608..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/BindSignalToBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6df1bca64a984074fb4af41dc1d42a07 -timeCreated: 1521288279 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs deleted file mode 100755 index 7911ec7aa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; - -namespace Zenject -{ - // Note that there's a reason we don't just have a generic - // argument for signal type - because when using struct type signals it throws - // exceptions on AOT platforms - public class SignalCallbackWithLookupWrapper : IDisposable - { - readonly DiContainer _container; - readonly SignalBus _signalBus; - readonly Guid _lookupId; - readonly Func> _methodGetter; - readonly Type _objectType; - readonly Type _signalType; - readonly object _identifier; - - [Inject] - public SignalCallbackWithLookupWrapper( - SignalBindingBindInfo signalBindInfo, - Type objectType, - Guid lookupId, - Func> methodGetter, - SignalBus signalBus, - DiContainer container) - { - _objectType = objectType; - _signalType = signalBindInfo.SignalType; - _identifier = signalBindInfo.Identifier; - _container = container; - _methodGetter = methodGetter; - _signalBus = signalBus; - _lookupId = lookupId; - - signalBus.SubscribeId(signalBindInfo.SignalType, _identifier, OnSignalFired); - } - - void OnSignalFired(object signal) - { - var objects = _container.ResolveIdAll(_objectType, _lookupId); - - for (int i = 0; i < objects.Count; i++) - { - _methodGetter(objects[i])(signal); - } - } - - public void Dispose() - { - _signalBus.UnsubscribeId(_signalType, _identifier, OnSignalFired); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs.meta deleted file mode 100755 index ef7e9a772..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWithLookupWrapper.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 2b11a635fa1263c4f9a9a0d70d7efcf2 -timeCreated: 1521293791 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs deleted file mode 100755 index 1e0fdf1f9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; - -namespace Zenject -{ - // Note that there's a reason we don't just have a generic - // argument for signal type - because when using struct type signals it throws - // exceptions on AOT platforms - public class SignalCallbackWrapper : IDisposable - { - readonly SignalBus _signalBus; - readonly Action _action; - readonly Type _signalType; - readonly object _identifier; - - [Inject] - public SignalCallbackWrapper( - SignalBindingBindInfo bindInfo, - Action action, - SignalBus signalBus) - { - _signalType = bindInfo.SignalType; - _identifier = bindInfo.Identifier; - _signalBus = signalBus; - _action = action; - - signalBus.SubscribeId(bindInfo.SignalType, _identifier, OnSignalFired); - } - - void OnSignalFired(object signal) - { - _action(signal); - } - - public void Dispose() - { - _signalBus.UnsubscribeId(_signalType, _identifier, OnSignalFired); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs.meta deleted file mode 100755 index 7b17d811d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/BindSignal/SignalCallbackWrapper.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 9a8599dbdf9033e468671e40de134ccf -timeCreated: 1521289018 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal.meta deleted file mode 100755 index c8477c1ea..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 7fe74811bfda2ef4ca9791eab479b27a -folderAsset: yes -timeCreated: 1521277428 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs deleted file mode 100755 index 4e1a79e04..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace Zenject -{ - [NoReflectionBaking] - public class DeclareSignalAsyncTickPriorityCopyBinder : SignalTickPriorityCopyBinder - { - public DeclareSignalAsyncTickPriorityCopyBinder(SignalDeclarationBindInfo signalBindInfo) - : base(signalBindInfo) - { - } - - public SignalTickPriorityCopyBinder RunAsync() - { - SignalBindInfo.RunAsync = true; - return this; - } - - public SignalCopyBinder RunSync() - { - SignalBindInfo.RunAsync = false; - return this; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs.meta deleted file mode 100755 index c312e3d7b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalAsyncTickPriorityCopyBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: b81f91889a4f58f45a186d306ec19a76 -timeCreated: 1529046908 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs deleted file mode 100755 index 189015beb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace Zenject -{ - [NoReflectionBaking] - public class DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder : DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder - { - public DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder( - SignalDeclarationBindInfo signalBindInfo) - : base(signalBindInfo) - { - } - - public DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder WithId(object identifier) - { - SignalBindInfo.Identifier = identifier; - return this; - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs.meta deleted file mode 100755 index c4aa2f8b4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 183994f131b561a43a9967cceb7c949d -timeCreated: 1538037476 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs deleted file mode 100755 index 7fd4ed1e9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs +++ /dev/null @@ -1,31 +0,0 @@ -namespace Zenject -{ - [NoReflectionBaking] - public class DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder : DeclareSignalAsyncTickPriorityCopyBinder - { - public DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder( - SignalDeclarationBindInfo signalBindInfo) - : base(signalBindInfo) - { - } - - public DeclareSignalAsyncTickPriorityCopyBinder RequireSubscriber() - { - SignalBindInfo.MissingHandlerResponse = SignalMissingHandlerResponses.Throw; - return this; - } - - public DeclareSignalAsyncTickPriorityCopyBinder OptionalSubscriber() - { - SignalBindInfo.MissingHandlerResponse = SignalMissingHandlerResponses.Ignore; - return this; - } - - public DeclareSignalAsyncTickPriorityCopyBinder OptionalSubscriberWithWarning() - { - SignalBindInfo.MissingHandlerResponse = SignalMissingHandlerResponses.Warn; - return this; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs.meta deleted file mode 100755 index e2f747d20..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/DeclareSignalRequireHandlerAsyncTickPriorityCopyBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 7cc67ec88be096e4a89e01987d671cb9 -timeCreated: 1529046908 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs deleted file mode 100755 index 29c5c45c8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -namespace Zenject -{ - [NoReflectionBaking] - public class SignalBindingBindInfo - { - public SignalBindingBindInfo(Type signalType) - { - SignalType = signalType; - } - - public object Identifier - { - get; set; - } - - public Type SignalType - { - get; private set; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs.meta deleted file mode 100755 index aa2ef7b6d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalBindingBindInfo.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 054ec2c1e404fd04f99dcab4d9012db2 -timeCreated: 1538401117 -licenseType: Pro -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs deleted file mode 100755 index 017a77ff6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; - -namespace Zenject -{ - [NoReflectionBaking] - public class SignalDeclarationBindInfo - { - public SignalDeclarationBindInfo(Type signalType) - { - SignalType = signalType; - } - - public object Identifier - { - get; set; - } - - public Type SignalType - { - get; private set; - } - - public bool RunAsync - { - get; set; - } - - public int TickPriority - { - get; set; - } - - public SignalMissingHandlerResponses MissingHandlerResponse - { - get; set; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs.meta deleted file mode 100755 index d96f3ebd1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/DeclareSignal/SignalDeclarationBindInfo.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1e83db91ff836874fb4fcf3ae4e16f0b -timeCreated: 1521277428 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs deleted file mode 100755 index 4495b1947..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System.Collections.Generic; - -namespace Zenject -{ - [NoReflectionBaking] - public class SignalCopyBinder - { - readonly List _bindInfos; - - public SignalCopyBinder() - { - _bindInfos = new List(); - } - - public SignalCopyBinder(BindInfo bindInfo) - { - _bindInfos = new List - { - bindInfo - }; - } - - // This is used in cases where you have multiple bindings that depend on each other so should - // be inherited together - public void AddCopyBindInfo(BindInfo bindInfo) - { - _bindInfos.Add(bindInfo); - } - - public void CopyIntoAllSubContainers() - { - SetInheritanceMethod(BindingInheritanceMethods.CopyIntoAll); - } - - // Only copy the binding into children and not grandchildren - public void CopyIntoDirectSubContainers() - { - SetInheritanceMethod(BindingInheritanceMethods.CopyDirectOnly); - } - - // Do not apply the binding on the current container - public void MoveIntoAllSubContainers() - { - SetInheritanceMethod(BindingInheritanceMethods.MoveIntoAll); - } - - // Do not apply the binding on the current container - public void MoveIntoDirectSubContainers() - { - SetInheritanceMethod(BindingInheritanceMethods.MoveDirectOnly); - } - - void SetInheritanceMethod(BindingInheritanceMethods method) - { - for (int i = 0; i < _bindInfos.Count; i++) - { - _bindInfos[i].BindingInheritanceMethod = method; - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs.meta deleted file mode 100755 index 64e170dcc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalCopyBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 604fe2d23cc79c7498be851b6970af1b -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs deleted file mode 100755 index cd93bb32f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -namespace Zenject -{ - public static class SignalExtensions - { - public static SignalDeclarationBindInfo CreateDefaultSignalDeclarationBindInfo(DiContainer container, Type signalType) - { - return new SignalDeclarationBindInfo(signalType) - { - RunAsync = container.Settings.Signals.DefaultSyncMode == SignalDefaultSyncModes.Asynchronous, - MissingHandlerResponse = container.Settings.Signals.MissingHandlerDefaultResponse, - TickPriority = container.Settings.Signals.DefaultAsyncTickPriority - }; - } - - public static DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder DeclareSignal(this DiContainer container, Type type) - { - var signalBindInfo = CreateDefaultSignalDeclarationBindInfo(container, type); - - var bindInfo = container.Bind().AsCached() - .WithArguments(signalBindInfo).WhenInjectedInto(typeof(SignalBus), typeof(SignalDeclarationAsyncInitializer)).BindInfo; - - var signalBinder = new DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder(signalBindInfo); - signalBinder.AddCopyBindInfo(bindInfo); - return signalBinder; - } - - public static DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder DeclareSignal(this DiContainer container) - { - return container.DeclareSignal(typeof(TSignal)); - } - - public static DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder DeclareSignalWithInterfaces(this DiContainer container) - { - Type type = typeof(TSignal); - - var declaration = container.DeclareSignal(type); - - Type[] interfaces = type.GetInterfaces(); - int numOfInterfaces = interfaces.Length; - for (int i = 0; i < numOfInterfaces; i++) - { - container.DeclareSignal(interfaces[i]); - } - - return declaration; - } - - public static BindSignalIdToBinder BindSignal(this DiContainer container) - { - var signalBindInfo = new SignalBindingBindInfo(typeof(TSignal)); - - return new BindSignalIdToBinder(container, signalBindInfo); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs.meta deleted file mode 100755 index 652cf5ef9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalExtensions.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: ca6f0ad40fd1abc4a8fb5e8a50134aa4 -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs deleted file mode 100755 index f35e1ba0c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace Zenject -{ - [NoReflectionBaking] - public class SignalTickPriorityCopyBinder : SignalCopyBinder - { - public SignalTickPriorityCopyBinder( - SignalDeclarationBindInfo signalBindInfo) - { - SignalBindInfo = signalBindInfo; - } - - protected SignalDeclarationBindInfo SignalBindInfo - { - get; private set; - } - - public SignalCopyBinder WithTickPriority(int priority) - { - SignalBindInfo.TickPriority = priority; - SignalBindInfo.RunAsync = true; - return this; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs.meta deleted file mode 100755 index 4f9734ee8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/Binders/SignalTickPriorityCopyBinder.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: fb1dbf2ad8637f340a532132f4555abd -timeCreated: 1529046908 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs deleted file mode 100755 index fd2adb58f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs +++ /dev/null @@ -1,187 +0,0 @@ -using System; -using System.Collections.Generic; -using ModestTree; -#if ZEN_SIGNALS_ADD_UNIRX -using UniRx; -#endif - -namespace Zenject -{ - public class SignalDeclaration : ITickable, IDisposable - { - readonly List _subscriptions = new List(); - readonly List _asyncQueue = new List(); - readonly BindingId _bindingId; - readonly SignalMissingHandlerResponses _missingHandlerResponses; - readonly bool _isAsync; - readonly ZenjectSettings.SignalSettings _settings; - -#if ZEN_SIGNALS_ADD_UNIRX - readonly Subject _stream = new Subject(); -#endif - - [Inject] - public SignalDeclaration( - SignalDeclarationBindInfo bindInfo, - [InjectOptional] - ZenjectSettings zenjectSettings) - { - zenjectSettings = zenjectSettings ?? ZenjectSettings.Default; - _settings = zenjectSettings.Signals ?? ZenjectSettings.SignalSettings.Default; - - _bindingId = new BindingId(bindInfo.SignalType, bindInfo.Identifier); - _missingHandlerResponses = bindInfo.MissingHandlerResponse; - _isAsync = bindInfo.RunAsync; - TickPriority = bindInfo.TickPriority; - } - -#if ZEN_SIGNALS_ADD_UNIRX - public IObservable Stream - { - get { return _stream; } - } -#endif - - public List Subscriptions => _subscriptions; - - public int TickPriority - { - get; private set; - } - - public bool IsAsync - { - get { return _isAsync; } - } - - public BindingId BindingId - { - get { return _bindingId; } - } - - public void Dispose() - { - if (_settings.RequireStrictUnsubscribe) - { - Assert.That(_subscriptions.IsEmpty(), - "Found {0} signal handlers still added to declaration {1}", _subscriptions.Count, _bindingId); - } - else - { - // We can't rely entirely on the destruction order in Unity because of - // the fact that OnDestroy is completely unpredictable. - // So if you have a GameObjectContext at the root level in your scene, then it - // might be destroyed AFTER the SceneContext. So if you have some signal declarations - // in the scene context, they might get disposed before some of the subscriptions - // so in this case you need to disconnect from the subscription so that it doesn't - // try to remove itself after the declaration has been destroyed - for (int i = 0; i < _subscriptions.Count; i++) - { - _subscriptions[i].OnDeclarationDespawned(); - } - } - } - - public void Fire(object signal) - { - Assert.That(signal.GetType().DerivesFromOrEqual(_bindingId.Type)); - - if (_isAsync) - { - _asyncQueue.Add(signal); - } - else - { - // Cache the callback list to allow handlers to be added from within callbacks - using (var block = DisposeBlock.Spawn()) - { - var subscriptions = block.SpawnList(); - subscriptions.AddRange(_subscriptions); - FireInternal(subscriptions, signal); - } - } - } - - void FireInternal(List subscriptions, object signal) - { - if (subscriptions.IsEmpty() -#if ZEN_SIGNALS_ADD_UNIRX - && !_stream.HasObservers -#endif - ) - { - if (_missingHandlerResponses == SignalMissingHandlerResponses.Warn) - { - Log.Warn("Fired signal '{0}' but no subscriptions found! If this is intentional then either add OptionalSubscriber() to the binding or change the default in ZenjectSettings", signal.GetType()); - } - else if (_missingHandlerResponses == SignalMissingHandlerResponses.Throw) - { - throw Assert.CreateException( - "Fired signal '{0}' but no subscriptions found! If this is intentional then either add OptionalSubscriber() to the binding or change the default in ZenjectSettings", signal.GetType()); - } - } - - for (int i = 0; i < subscriptions.Count; i++) - { - var subscription = subscriptions[i]; - - // This is a weird check for the very rare case where an Unsubscribe is called - // from within the same callback (see TestSignalsAdvanced.TestSubscribeUnsubscribeInsideHandler) - if (_subscriptions.Contains(subscription)) - { - subscription.Invoke(signal); - } - } - -#if ZEN_SIGNALS_ADD_UNIRX - _stream.OnNext(signal); -#endif - } - - public void Tick() - { - Assert.That(_isAsync); - - if (!_asyncQueue.IsEmpty()) - { - // Cache the callback list to allow handlers to be added from within callbacks - using (var block = DisposeBlock.Spawn()) - { - var subscriptions = block.SpawnList(); - subscriptions.AddRange(_subscriptions); - - // Cache the signals so that if the signal is fired again inside the handler that it - // is not executed until next frame - var signals = block.SpawnList(); - signals.AddRange(_asyncQueue); - - _asyncQueue.Clear(); - - for (int i = 0; i < signals.Count; i++) - { - FireInternal(subscriptions, signals[i]); - } - } - } - } - - public void Add(SignalSubscription subscription) - { - Assert.That(!_subscriptions.Contains(subscription)); - _subscriptions.Add(subscription); - } - - public void Remove(SignalSubscription subscription) - { - _subscriptions.RemoveWithConfirm(subscription); - } - - public class Factory : PlaceholderFactory - { - [Inject] - public Factory() - { - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs.meta deleted file mode 100755 index 61f030474..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalDeclaration.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1246007cc9cfbc04cb83b9bde4c34995 -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs deleted file mode 100755 index cd135821f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Linq; -using ModestTree; - -namespace Zenject -{ - public class SignalSubscription : IDisposable, IPoolable, SignalDeclaration> - { - readonly Pool _pool; - - Action _callback; - SignalDeclaration _declaration; - BindingId _signalId; - - [Inject] - public SignalSubscription(Pool pool) - { - _pool = pool; - - SetDefaults(); - } - - public BindingId SignalId - { - get { return _signalId; } - } - - public void OnSpawned( - Action callback, SignalDeclaration declaration) - { - Assert.IsNull(_callback); - _callback = callback; - _declaration = declaration; - // Cache this in case OnDeclarationDespawned is called - _signalId = declaration.BindingId; - - declaration.Add(this); - } - - public void OnDespawned() - { - if (_declaration != null) - { - _declaration.Remove(this); - } - - SetDefaults(); - } - - void SetDefaults() - { - _callback = null; - _declaration = null; - _signalId = new BindingId(); - } - - public void Dispose() - { - // Allow calling this twice since signals automatically unsubscribe in SignalBus.LateDispose - // and so this causes issues if users also unsubscribe in a MonoBehaviour OnDestroy on a - // root game object - if (!_pool.InactiveItems.Contains(this)) - { - _pool.Despawn(this); - } - } - - // See comment in SignalDeclaration for why this exists - public void OnDeclarationDespawned() - { - _declaration = null; - } - - public void Invoke(object signal) - { - _callback(signal); - } - - public class Pool : PoolableMemoryPool, SignalDeclaration, SignalSubscription> - { - [Inject] - public Pool() - { - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs.meta deleted file mode 100755 index 467a09679..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscription.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 26affab6a482d904580cce7f9f1a94f4 -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs deleted file mode 100755 index 89ed40150..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Diagnostics; - -namespace Zenject -{ - [DebuggerStepThrough] - public struct SignalSubscriptionId : IEquatable - { - BindingId _signalId; - object _callback; - - public SignalSubscriptionId(BindingId signalId, object callback) - { - _signalId = signalId; - _callback = callback; - } - - public BindingId SignalId - { - get { return _signalId; } - } - - public object Callback - { - get { return _callback; } - } - - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hash = 17; - hash = hash * 29 + _signalId.GetHashCode(); - hash = hash * 29 + _callback.GetHashCode(); - return hash; - } - } - - public override bool Equals(object that) - { - if (that is SignalSubscriptionId) - { - return Equals((SignalSubscriptionId)that); - } - - return false; - } - - public bool Equals(SignalSubscriptionId that) - { - return Equals(_signalId, that._signalId) - && Equals(Callback, that.Callback); - } - - public static bool operator == (SignalSubscriptionId left, SignalSubscriptionId right) - { - return left.Equals(right); - } - - public static bool operator != (SignalSubscriptionId left, SignalSubscriptionId right) - { - return !left.Equals(right); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs.meta deleted file mode 100755 index 5b260b7bf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Internal/SignalSubscriptionId.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 2ebf6df7998e59b4393ef46553665ba2 -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main.meta deleted file mode 100644 index ebf169bda..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: ebb190b1462cf04478644ba25fb51df0 -folderAsset: yes -timeCreated: 1521266917 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs deleted file mode 100755 index 58f333416..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs +++ /dev/null @@ -1,451 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using ModestTree; -#if ZEN_SIGNALS_ADD_UNIRX -using UniRx; -#endif - -namespace Zenject -{ - public class SignalBus : ILateDisposable - { - readonly SignalSubscription.Pool _subscriptionPool; - readonly Dictionary _localDeclarationMap = new Dictionary(); - readonly SignalBus _parentBus; - readonly Dictionary _subscriptionMap = new Dictionary(); - readonly ZenjectSettings.SignalSettings _settings; - readonly SignalDeclaration.Factory _signalDeclarationFactory; - readonly DiContainer _container; - - [Inject] - public SignalBus( - [Inject(Source = InjectSources.Local)] - List signalDeclarations, - [Inject(Source = InjectSources.Parent, Optional = true)] - SignalBus parentBus, - [InjectOptional] - ZenjectSettings zenjectSettings, - SignalSubscription.Pool subscriptionPool, - SignalDeclaration.Factory signalDeclarationFactory, - DiContainer container) - { - _subscriptionPool = subscriptionPool; - zenjectSettings = zenjectSettings ?? ZenjectSettings.Default; - _settings = zenjectSettings.Signals ?? ZenjectSettings.SignalSettings.Default; - _signalDeclarationFactory = signalDeclarationFactory; - _container = container; - - signalDeclarations.ForEach(x => - { - if (!_localDeclarationMap.ContainsKey(x.BindingId)) - { - _localDeclarationMap.Add(x.BindingId, x); - } - else _localDeclarationMap[x.BindingId].Subscriptions.AllocFreeAddRange(x.Subscriptions); - }); - _parentBus = parentBus; - } - - public SignalBus ParentBus - { - get { return _parentBus; } - } - - public int NumSubscribers - { - get { return _subscriptionMap.Count; } - } - - - //Fires Signals with their interfaces - public void AbstractFire() where TSignal : new() => AbstractFire(new TSignal()); - public void AbstractFire(TSignal signal) => AbstractFireId(null, signal); - public void AbstractFireId(object identifier, TSignal signal) - { - // Do this before creating the signal so that it throws if the signal was not declared - Type signalType = typeof(TSignal); - InternalFire(signalType, signal, identifier, true); - - Type[] interfaces = signalType.GetInterfaces(); - int numOfInterfaces = interfaces.Length; - for (int i = 0; i < numOfInterfaces; i++) - { - InternalFire(interfaces[i], signal, identifier, true); - } - } - - public void LateDispose() - { - if (_settings.RequireStrictUnsubscribe) - { - if (!_subscriptionMap.IsEmpty()) - { - throw Assert.CreateException( - "Found subscriptions for signals '{0}' in SignalBus.LateDispose! Either add the explicit Unsubscribe or set SignalSettings.AutoUnsubscribeInDispose to true", - _subscriptionMap.Values.Select(x => x.SignalId.ToString()).Join(", ")); - } - } - else - { - foreach (var subscription in _subscriptionMap.Values) - { - subscription.Dispose(); - } - } - - foreach (var declaration in _localDeclarationMap.Values) - { - declaration.Dispose(); - } - } - - public void FireId(object identifier, TSignal signal) - { - InternalFire(typeof(TSignal), signal, identifier, true); - } - - public void Fire(TSignal signal) - { - FireId(null, signal); - } - - public void FireId(object identifier) - { - InternalFire(typeof(TSignal), null, identifier, true); - } - - public void Fire() - { - FireId(null); - } - - public void FireId(object identifier, object signal) - { - InternalFire(signal.GetType(), signal, identifier, true); - } - - public void Fire(object signal) - { - FireId(null, signal); - } - - public bool IsSignalDeclared() - { - return IsSignalDeclared(typeof(TSignal), null); - } - - public bool IsSignalDeclared(object identifier) - { - return IsSignalDeclared(typeof(TSignal), identifier); - } - - public bool IsSignalDeclared(Type signalType) - { - return IsSignalDeclared(signalType, null); - } - - public bool IsSignalDeclared(Type signalType, object identifier) - { - var signalId = new BindingId(signalType, identifier); - return GetDeclaration(signalId) != null; - } - - public void TryFireId(object identifier, TSignal signal) - { - InternalFire(typeof(TSignal), signal, identifier, false); - } - - public void TryFire(TSignal signal) - { - TryFireId(null, signal); - } - - public void TryFireId(object identifier) - { - InternalFire(typeof(TSignal), null, identifier, false); - } - - public void TryFire() - { - TryFireId(null); - } - - public void TryFireId(object identifier, object signal) - { - InternalFire(signal.GetType(), signal, identifier, false); - } - - public void TryFire(object signal) - { - TryFireId(null, signal); - } - - private void InternalFire(Type signalType, object signal, object identifier, bool requireDeclaration) - { - var signalId = new BindingId(signalType, identifier); - - // Do this before creating the signal so that it throws if the signal was not declared - var declaration = GetDeclaration(signalId); - - if (declaration == null) - { - if (requireDeclaration) - { - throw Assert.CreateException("Fired undeclared signal '{0}'!", signalId); - } - } - else - { - if (signal == null) - { - signal = Activator.CreateInstance(signalType); - } - - declaration.Fire(signal); - } - } - -#if ZEN_SIGNALS_ADD_UNIRX - public IObservable GetStreamId(object identifier) - { - return GetStreamId(typeof(TSignal), identifier).Select(x => (TSignal)x); - } - - public IObservable GetStream() - { - return GetStreamId(null); - } - - public IObservable GetStreamId(Type signalType, object identifier) - { - return GetDeclaration(new BindingId(signalType, identifier)).Stream; - } - - public IObservable GetStream(Type signalType) - { - return GetStreamId(signalType, null); - } -#endif - - public void SubscribeId(object identifier, Action callback) - { - Action wrapperCallback = args => callback(); - SubscribeInternal(typeof(TSignal), identifier, callback, wrapperCallback); - } - - public void Subscribe(Action callback) - { - SubscribeId(null, callback); - } - - public void SubscribeId(object identifier, Action callback) - { - Action wrapperCallback = args => callback((TSignal)args); - SubscribeInternal(typeof(TSignal), identifier, callback, wrapperCallback); - } - - public void Subscribe(Action callback) - { - SubscribeId(null, callback); - } - - public void SubscribeId(Type signalType, object identifier, Action callback) - { - SubscribeInternal(signalType, identifier, callback, callback); - } - - public void Subscribe(Type signalType, Action callback) - { - SubscribeId(signalType, null, callback); - } - - public void UnsubscribeId(object identifier, Action callback) - { - UnsubscribeId(typeof(TSignal), identifier, callback); - } - - public void Unsubscribe(Action callback) - { - UnsubscribeId(null, callback); - } - - public void UnsubscribeId(Type signalType, object identifier, Action callback) - { - UnsubscribeInternal(signalType, identifier, callback, true); - } - - public void Unsubscribe(Type signalType, Action callback) - { - UnsubscribeId(signalType, null, callback); - } - - public void UnsubscribeId(Type signalType, object identifier, Action callback) - { - UnsubscribeInternal(signalType, identifier, callback, true); - } - - public void Unsubscribe(Type signalType, Action callback) - { - UnsubscribeId(signalType, null, callback); - } - - public void UnsubscribeId(object identifier, Action callback) - { - UnsubscribeInternal(typeof(TSignal), identifier, callback, true); - } - - public void Unsubscribe(Action callback) - { - UnsubscribeId(null, callback); - } - - public void TryUnsubscribeId(object identifier, Action callback) - { - UnsubscribeInternal(typeof(TSignal), identifier, callback, false); - } - - public void TryUnsubscribe(Action callback) - { - TryUnsubscribeId(null, callback); - } - - public void TryUnsubscribeId(Type signalType, object identifier, Action callback) - { - UnsubscribeInternal(signalType, identifier, callback, false); - } - - public void TryUnsubscribe(Type signalType, Action callback) - { - TryUnsubscribeId(signalType, null, callback); - } - - public void TryUnsubscribeId(Type signalType, object identifier, Action callback) - { - UnsubscribeInternal(signalType, identifier, callback, false); - } - - public void TryUnsubscribe(Type signalType, Action callback) - { - TryUnsubscribeId(signalType, null, callback); - } - - public void TryUnsubscribeId(object identifier, Action callback) - { - UnsubscribeInternal(typeof(TSignal), identifier, callback, false); - } - - public void TryUnsubscribe(Action callback) - { - TryUnsubscribeId(null, callback); - } - - void UnsubscribeInternal(Type signalType, object identifier, object token, bool throwIfMissing) - { - UnsubscribeInternal(new BindingId(signalType, identifier), token, throwIfMissing); - } - - void UnsubscribeInternal(BindingId signalId, object token, bool throwIfMissing) - { - UnsubscribeInternal( - new SignalSubscriptionId(signalId, token), throwIfMissing); - } - - void UnsubscribeInternal(SignalSubscriptionId id, bool throwIfMissing) - { - SignalSubscription subscription; - - if (_subscriptionMap.TryGetValue(id, out subscription)) - { - _subscriptionMap.RemoveWithConfirm(id); - subscription.Dispose(); - } - else - { - if (throwIfMissing) - { - throw Assert.CreateException( - "Called unsubscribe for signal '{0}' but could not find corresponding subscribe. If this is intentional, call TryUnsubscribe instead.", id.SignalId); - } - } - } - - void SubscribeInternal(Type signalType, object identifier, object token, Action callback) - { - SubscribeInternal(new BindingId(signalType, identifier), token, callback); - } - - void SubscribeInternal(BindingId signalId, object token, Action callback) - { - SubscribeInternal( - new SignalSubscriptionId(signalId, token), callback); - } - - void SubscribeInternal(SignalSubscriptionId id, Action callback) - { - Assert.That(!_subscriptionMap.ContainsKey(id), - "Tried subscribing to the same signal with the same callback on Zenject.SignalBus"); - - var declaration = GetDeclaration(id.SignalId); - - if (declaration == null) - { - throw Assert.CreateException("Tried subscribing to undeclared signal '{0}'!", id.SignalId); - } - - var subscription = _subscriptionPool.Spawn(callback, declaration); - - _subscriptionMap.Add(id, subscription); - } - - public void DeclareSignal( - object identifier = null, SignalMissingHandlerResponses? missingHandlerResponse = null, bool? forceAsync = null, int? asyncTickPriority = null) - { - DeclareSignal(typeof(T), identifier, missingHandlerResponse, forceAsync, asyncTickPriority); - } - - public void DeclareSignal( - Type signalType, object identifier = null, SignalMissingHandlerResponses? missingHandlerResponse = null, bool? forceAsync = null, int? asyncTickPriority = null) - { - var bindInfo = SignalExtensions.CreateDefaultSignalDeclarationBindInfo(_container, signalType); - - bindInfo.Identifier = identifier; - - if (missingHandlerResponse.HasValue) - { - bindInfo.MissingHandlerResponse = missingHandlerResponse.Value; - } - - if (forceAsync.HasValue) - { - bindInfo.RunAsync = forceAsync.Value; - } - - if (asyncTickPriority.HasValue) - { - bindInfo.TickPriority = asyncTickPriority.Value; - } - - var declaration = _signalDeclarationFactory.Create(bindInfo); - - _localDeclarationMap.Add(declaration.BindingId, declaration); - } - - SignalDeclaration GetDeclaration(BindingId signalId) - { - SignalDeclaration handler; - - if (_localDeclarationMap.TryGetValue(signalId, out handler)) - { - return handler; - } - - if (_parentBus != null) - { - return _parentBus.GetDeclaration(signalId); - } - - return null; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs.meta deleted file mode 100755 index 8612fae79..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBus.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: d457d0e45e1d3c54f9bc2bc3aece1760 -timeCreated: 1521266917 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs deleted file mode 100755 index 574eecc7e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs +++ /dev/null @@ -1,29 +0,0 @@ -using ModestTree; - -namespace Zenject -{ - // Note that you only need to install this once - public class SignalBusInstaller : Installer - { - [Inject] - public SignalBusInstaller() - { - } - - public override void InstallBindings() - { - Assert.That(!Container.HasBinding(), "Detected multiple SignalBus bindings. SignalBusInstaller should only be installed once"); - - Container.BindInterfacesAndSelfTo().AsSingle().CopyIntoAllSubContainers(); - - Container.BindInterfacesTo().AsSingle().CopyIntoAllSubContainers(); - - Container.BindMemoryPool(); - - // Dispose last to ensure that we don't remove SignalSubscription before the user does - Container.BindLateDisposableExecutionOrder(-999); - - Container.BindFactory(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs.meta deleted file mode 100755 index 7208b442a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalBusInstaller.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 2afd112e630107f458140fbe19d4e31c -timeCreated: 1528988907 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs deleted file mode 100755 index b7d06e7b4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Collections.Generic; -using ModestTree; - -namespace Zenject -{ - // This class just exists to solve a circular dependency that would otherwise happen if we - // attempted to inject TickableManager into either SignalDeclaration or SignalBus - // And we need to directly depend on TickableManager because we need each SignalDeclaration - // to have a unique tick priority - public class SignalDeclarationAsyncInitializer : IInitializable - { - readonly LazyInject _tickManager; - readonly List _declarations; - - [Inject] - public SignalDeclarationAsyncInitializer( - [Inject(Source = InjectSources.Local)] - List declarations, - [Inject(Optional = true, Source = InjectSources.Local)] - LazyInject tickManager) - { - _declarations = declarations; - _tickManager = tickManager; - } - - public void Initialize() - { - for (int i = 0; i < _declarations.Count; i++) - { - var declaration = _declarations[i]; - - if (declaration.IsAsync) - { - Assert.IsNotNull(_tickManager.Value, "TickableManager is required when using asynchronous signals"); - _tickManager.Value.Add(declaration, declaration.TickPriority); - } - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs.meta deleted file mode 100755 index 3c85bfd9f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Main/SignalDeclarationAsyncInitializer.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: e8d0040c0a3734b49b26f7cdaa86c5e8 -timeCreated: 1529153251 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj deleted file mode 100644 index d28739531..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Debug - AnyCPU - {2F314FC6-5BD1-4A28-9FA0-F1F4C84871DE} - Library - Properties - Zenject - Zenject-Signals - v3.5 - 512 - - - - true - full - false - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Debug\ - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Debug\ - ..\..\..\..\..\..\NonUnityBuild\Bin\Debug\ - TRACE;DEBUG;NOT_UNITY3D - prompt - 4 - - - pdbonly - true - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Release\ - ..\..\..\..\..\..\..\NonUnityBuild\Temp\Release\ - ..\..\..\..\..\..\NonUnityBuild\Bin\Release\ - TRACE;NOT_UNITY3D - prompt - 4 - - - - - - - - - - - - {e22b1cbf-7e4d-48bd-953b-2b730bd9ff13} - Zenject-usage - - - {46f25a62-2e29-48cb-95f3-bdbcb0976ddc} - Zenject - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj.meta deleted file mode 100644 index 29d5140f7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/Signals/Zenject-Signals.csproj.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: aebd7ef925dd4fe4690c3238e879f914 -timeCreated: 1537606270 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework.meta deleted file mode 100644 index 6e01a398a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: dd37a6fe62077344583c1ff10a2f0962 -folderAsset: yes -timeCreated: 1520787886 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs deleted file mode 100644 index 983430178..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using ModestTree; -using NUnit.Framework; -using UnityEngine; -using UnityEngine.SceneManagement; -using Zenject.Internal; -using Assert = ModestTree.Assert; - -// Ignore warning about using SceneManager.UnloadScene instead of SceneManager.UnloadSceneAsync -#pragma warning disable 618 - -namespace Zenject -{ - public abstract class SceneTestFixture - { - readonly List _sceneContainers = new List(); - - bool _hasLoadedScene; - DiContainer _sceneContainer; - - protected DiContainer SceneContainer - { - get { return _sceneContainer; } - } - - protected IEnumerable SceneContainers - { - get { return _sceneContainers; } - } - - public IEnumerator LoadScene(string sceneName) - { - return LoadScenes(sceneName); - } - - public IEnumerator LoadScenes(params string[] sceneNames) - { - Assert.That(!_hasLoadedScene, "Attempted to load scene twice!"); - _hasLoadedScene = true; - - // Clean up any leftovers from previous test - ZenjectTestUtil.DestroyEverythingExceptTestRunner(false); - - Assert.That(SceneContainers.IsEmpty()); - - for (int i = 0; i < sceneNames.Length; i++) - { - var sceneName = sceneNames[i]; - - Assert.That(Application.CanStreamedLevelBeLoaded(sceneName), - "Cannot load scene '{0}' for test '{1}'. The scenes used by SceneTestFixture derived classes must be added to the build settings for the test to work", - sceneName, GetType()); - - Log.Info("Loading scene '{0}' for testing", sceneName); - - var loader = SceneManager.LoadSceneAsync(sceneName, i == 0 ? LoadSceneMode.Single : LoadSceneMode.Additive); - - while (!loader.isDone) - { - yield return null; - } - - SceneContext sceneContext = null; - - if (ProjectContext.HasInstance) - // ProjectContext might be null if scene does not have a scene context - { - var scene = SceneManager.GetSceneByName(sceneName); - - sceneContext = ProjectContext.Instance.Container.Resolve() - .TryGetSceneContextForScene(scene); - } - - _sceneContainers.Add(sceneContext == null ? null : sceneContext.Container); - } - - _sceneContainer = _sceneContainers.Where(x => x != null).LastOrDefault(); - - if (_sceneContainer != null) - { - _sceneContainer.Inject(this); - } - } - - [SetUp] - public virtual void SetUp() - { - StaticContext.Clear(); - SetMemberDefaults(); - } - - void SetMemberDefaults() - { - _hasLoadedScene = false; - _sceneContainer = null; - _sceneContainers.Clear(); - } - - [TearDown] - public virtual void Teardown() - { - ZenjectTestUtil.DestroyEverythingExceptTestRunner(true); - StaticContext.Clear(); - SetMemberDefaults(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs.meta deleted file mode 100644 index db7d9dfeb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixture.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 325fb0e9bd879b440a9b5c077309c199 -timeCreated: 1527233974 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs deleted file mode 100644 index 6145d4f8b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs +++ /dev/null @@ -1,15 +0,0 @@ -#if UNITY_EDITOR - -using System; -using UnityEditor; -using UnityEngine; - -namespace Zenject -{ - public class SceneTestFixtureSceneReference : ScriptableObject - { - public SceneAsset Scene; - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs.meta deleted file mode 100644 index b74ca2487..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/SceneTestFixtureSceneReference.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 5b634c456740a0e42928511e3f2ada75 -timeCreated: 1527233974 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs deleted file mode 100644 index 11c3096e0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Zenject -{ - [AttributeUsage(AttributeTargets.Method)] - public class ValidateOnlyAttribute : Attribute - { - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs.meta deleted file mode 100644 index 59ff5d520..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ValidateOnlyAttribute.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2f9f4a0ef011f8846b17c8dc23e69b11 -timeCreated: 1506450521 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef deleted file mode 100644 index 3f0534c14..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Zenject-TestFramework", - "references": [ - "Zenject" - ], - "optionalUnityReferences": [ - "TestAssemblies" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef.meta deleted file mode 100644 index 9dc3291b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Zenject-TestFramework.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a2f2239355369ba4fb6909aeaa41def5 -timeCreated: 1531969421 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs deleted file mode 100644 index ff5a301fa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs +++ /dev/null @@ -1,155 +0,0 @@ -using System; -using System.Collections; -using Zenject.Internal; -using ModestTree; -using Assert = ModestTree.Assert; -using System.Linq; -using NUnit.Framework; -using NUnit.Framework.Interfaces; -using UnityEngine; - -namespace Zenject -{ - public abstract class ZenjectIntegrationTestFixture - { - SceneContext _sceneContext; - - bool _hasEndedInstall; - bool _hasStartedInstall; - - protected DiContainer Container - { - get - { - Assert.That(_hasStartedInstall, - "Must call PreInstall() before accessing ZenjectIntegrationTestFixture.Container!"); - return _sceneContext.Container; - } - } - - protected SceneContext SceneContext - { - get - { - Assert.That(_hasStartedInstall, - "Must call PreInstall() before accessing ZenjectIntegrationTestFixture.SceneContext!"); - return _sceneContext; - } - } - - [SetUp] - public void Setup() - { - Assert.That(Application.isPlaying, - "ZenjectIntegrationTestFixture is meant to be used for play mode tests only. Please ensure your test file '{0}' is outside of the editor folder and try again.", GetType()); - - ZenjectTestUtil.DestroyEverythingExceptTestRunner(true); - StaticContext.Clear(); - } - - protected void SkipInstall() - { - PreInstall(); - PostInstall(); - } - - protected void PreInstall() - { - Assert.That(!_hasStartedInstall, "Called PreInstall twice in test '{0}'!", TestContext.CurrentContext.Test.Name); - _hasStartedInstall = true; - - Assert.That(!ProjectContext.HasInstance); - - var shouldValidate = CurrentTestHasAttribute(); - ProjectContext.ValidateOnNextRun = shouldValidate; - - Assert.That(_sceneContext == null); - - _sceneContext = SceneContext.Create(); - _sceneContext.Install(); - - Assert.That(ProjectContext.HasInstance); - - Assert.IsEqual(shouldValidate, ProjectContext.Instance.Container.IsValidating); - Assert.IsEqual(shouldValidate, _sceneContext.Container.IsValidating); - } - - bool CurrentTestHasAttribute() - where T : Attribute - { - return GetType().GetMethod(TestContext.CurrentContext.Test.MethodName) - .GetCustomAttributes(true) - .Cast().OfType().Any(); - } - - protected void PostInstall() - { - Assert.That(_hasStartedInstall, - "Called PostInstall but did not call PreInstall in test '{0}'!", TestContext.CurrentContext.Test.Name); - - Assert.That(!_hasEndedInstall, "Called PostInstall twice in test '{0}'!", TestContext.CurrentContext.Test.Name); - - _hasEndedInstall = true; - _sceneContext.Resolve(); - - Container.Inject(this); - - if (!Container.IsValidating) - { - // We don't have to do this here but it's kind of convenient - // We could also remove it and just require that users add a yield after calling - // and it would have the same effect - Container.Resolve().Initialize(); - } - } - - protected IEnumerator DestroyEverything() - { - Assert.That(_hasStartedInstall, - "Called DestroyAll but did not call PreInstall (or SkipInstall) in test '{0}'!", TestContext.CurrentContext.Test.Name); - DestroyEverythingInternal(false); - // Wait one frame for GC to really destroy everything - yield return null; - } - - void DestroyEverythingInternal(bool immediate) - { - if (_sceneContext != null) - { - // We need to use DestroyImmediate so that all the IDisposable's etc get processed immediately before - // next test runs - if (immediate) - { - GameObject.DestroyImmediate(_sceneContext.gameObject); - } - else - { - GameObject.Destroy(_sceneContext.gameObject); - } - - _sceneContext = null; - } - - ZenjectTestUtil.DestroyEverythingExceptTestRunner(immediate); - StaticContext.Clear(); - } - - [TearDown] - public void TearDown() - { - if (TestContext.CurrentContext.Result.Outcome == ResultState.Success) - { - Assert.That(_hasStartedInstall, - "PreInstall (or SkipInstall) was not called in test '{0}'!", TestContext.CurrentContext.Test.Name); - - Assert.That(_hasEndedInstall, - "PostInstall was not called in test '{0}'!", TestContext.CurrentContext.Test.Name); - } - - DestroyEverythingInternal(true); - - _hasStartedInstall = false; - _hasEndedInstall = false; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs.meta deleted file mode 100644 index 02049b172..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectIntegrationTestFixture.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e0464fe2b382d1d4babf13bf0c3fa044 -timeCreated: 1506429461 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs deleted file mode 100644 index f65a51b05..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs +++ /dev/null @@ -1,49 +0,0 @@ -using ModestTree; -using UnityEngine; -using UnityEngine.SceneManagement; - -namespace Zenject.Internal -{ - public static class ZenjectTestUtil - { - public const string UnitTestRunnerGameObjectName = "Code-based tests runner"; - - public static void DestroyEverythingExceptTestRunner(bool immediate) - { - var testRunner = GameObject.Find(UnitTestRunnerGameObjectName); - Assert.IsNotNull(testRunner); - GameObject.DontDestroyOnLoad(testRunner); - - // We want to clear all objects across all scenes to ensure the next test is not affected - // at all by previous tests - for (int i = 0; i < SceneManager.sceneCount; i++) - { - foreach (var obj in SceneManager.GetSceneAt(i).GetRootGameObjects()) - { - GameObject.DestroyImmediate(obj); - } - } - - if (ProjectContext.HasInstance) - { - var dontDestroyOnLoadRoots = ProjectContext.Instance.gameObject.scene - .GetRootGameObjects(); - - foreach (var rootObj in dontDestroyOnLoadRoots) - { - if (rootObj.name != UnitTestRunnerGameObjectName) - { - if (immediate) - { - GameObject.DestroyImmediate(rootObj); - } - else - { - GameObject.Destroy(rootObj); - } - } - } - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs.meta deleted file mode 100644 index da09451f8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectTestUtil.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 4101e443fc2ede94c99d4d759087cc44 -timeCreated: 1527644566 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs deleted file mode 100644 index 153a32e92..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs +++ /dev/null @@ -1,31 +0,0 @@ -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(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs.meta deleted file mode 100644 index 39b496e11..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/ZenjectUnitTestFixture.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 51305c7ccfc8a9f4390aeefc54674cde -timeCreated: 1536808207 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests.meta deleted file mode 100644 index 839ab7be1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 7378a2249be3cab40bbebc680d8a6122 -folderAsset: yes -DefaultImporter: - userData: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor.meta deleted file mode 100644 index fc5a1e7d3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1d55b2694c783d147a989babca92c7bf -folderAsset: yes -timeCreated: 1461799712 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures.meta deleted file mode 100644 index fd982e0f7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a25b85a8c5c0f2b42a1eec620b699e8a -folderAsset: yes -timeCreated: 1461711436 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs deleted file mode 100644 index 99d57617b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs +++ /dev/null @@ -1,92 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestBindingInheritanceMethod : ZenjectUnitTestFixture - { - [Test] - public void TestNoCopy() - { - Container.Bind().AsSingle(); - - var sub1 = Container.CreateSubContainer(); - - Assert.IsEqual(sub1.Resolve(), Container.Resolve()); - } - - [Test] - public void TestCopyIntoAll1() - { - Container.Bind().AsSingle().CopyIntoAllSubContainers(); - - var sub1 = Container.CreateSubContainer(); - - Assert.IsNotEqual(sub1.Resolve(), Container.Resolve()); - } - - [Test] - public void TestCopyIntoAll2() - { - Container.Bind().To().FromResolve().CopyIntoAllSubContainers(); - Container.Bind().AsSingle(); - - var sub1 = Container.CreateSubContainer(); - - Assert.IsEqual(Container.ResolveAll().Count, 1); - Assert.IsEqual(sub1.ResolveAll().Count, 2); - } - - [Test] - public void TestCopyDirect1() - { - Container.Bind().AsSingle().CopyIntoDirectSubContainers(); - - var sub1 = Container.CreateSubContainer(); - var sub2 = sub1.CreateSubContainer(); - - Assert.That(Container.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(sub1.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(!sub2.HasBindingId(typeof(Foo), null, InjectSources.Local)); - } - - [Test] - public void TestMoveDirect1() - { - Container.Bind().AsSingle().MoveIntoDirectSubContainers(); - - var sub1 = Container.CreateSubContainer(); - var sub2 = sub1.CreateSubContainer(); - - Assert.That(!Container.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(sub1.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(!sub2.HasBindingId(typeof(Foo), null, InjectSources.Local)); - } - - [Test] - public void TestMoveAll() - { - Container.Bind().AsSingle().MoveIntoAllSubContainers(); - - var sub1 = Container.CreateSubContainer(); - var sub2 = sub1.CreateSubContainer(); - - Assert.That(!Container.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(sub1.HasBindingId(typeof(Foo), null, InjectSources.Local)); - Assert.That(sub2.HasBindingId(typeof(Foo), null, InjectSources.Local)); - } - - public interface IBar - { - } - - public class Foo - { - } - - public class Bar : IBar - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs.meta deleted file mode 100644 index f0fe12751..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestBindingInheritanceMethod.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 645589d2772852246ac2ea1fd8ee4f92 -timeCreated: 1519842213 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs deleted file mode 100644 index 0671adbb5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs +++ /dev/null @@ -1,47 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestConcreteIdentifier : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.Bind().To().AsCached().WithConcreteId("asdf"); - Container.Bind().To().AsCached(); - - Container.BindInstance("a").When(x => Equals(x.ConcreteIdentifier, "asdf") && x.ObjectType == typeof(Foo)); - Container.BindInstance("b").When(x => x.ConcreteIdentifier == null && x.ObjectType == typeof(Foo)); - - var foos = Container.ResolveAll(); - - Assert.IsEqual(foos[0].Value, "a"); - Assert.IsEqual(foos[1].Value, "b"); - } - - interface IFoo - { - string Value - { - get; - } - } - - class Foo : IFoo - { - public Foo(string data) - { - Value = data; - } - - public string Value - { - get; private set; - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs.meta deleted file mode 100644 index 56da6f633..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestConcreteIdentifier.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 51d298299a99e3247aa3cc0b5caa1c88 -timeCreated: 1523257672 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs deleted file mode 100644 index c0c2935b4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs +++ /dev/null @@ -1,41 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestIfNotBound : ZenjectUnitTestFixture - { - interface IFoo - { - } - - public class Foo1 : IFoo - { - } - - public class Foo2 : IFoo - { - } - - [Test] - public void Test1() - { - Container.Bind().To().AsSingle(); - Container.Bind().To().AsSingle(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void Test2() - { - Container.Bind().To().AsSingle(); - Container.Bind().To().AsSingle().IfNotBound(); - - Assert.IsEqual(Container.ResolveAll().Count, 1); - Assert.IsType(Container.Resolve()); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs.meta deleted file mode 100644 index 82154cd37..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestIfNotBound.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 0fa385d656ffb584d8326240eb19c9f3 -timeCreated: 1519798640 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoAllSubContainers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoAllSubContainers.cs deleted file mode 100644 index e69de29bb..000000000 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoAllSubContainers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoAllSubContainers.cs.meta deleted file mode 100644 index 76da3ac55..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoAllSubContainers.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 685a532a989c2f846b3fb97ea6c63b01 -timeCreated: 1519798640 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoDirectSubContainers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoDirectSubContainers.cs deleted file mode 100644 index e69de29bb..000000000 diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoDirectSubContainers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoDirectSubContainers.cs.meta deleted file mode 100644 index c2e01d761..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMoveIntoDirectSubContainers.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 7a57b8b648dfde647b2cc4de6e9ea944 -timeCreated: 1519798640 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs deleted file mode 100644 index 6ed003ed8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestMultipleContractTypes : ZenjectUnitTestFixture - { - class Test1 - { - } - - class Test2 : Test1 - { - } - - class Test3 : Test1 - { - } - - class TestImpl1 - { - public List tests; - - public TestImpl1(List tests) - { - this.tests = tests; - } - } - - class TestImpl2 - { - [Inject] - public List tests = null; - } - - [Test] - public void TestMultiBind1() - { - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - var test1 = Container.Resolve(); - - Assert.That(test1.tests.Count == 2); - } - - [Test] - public void TestMultiBindListInjection() - { - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - var test = Container.Resolve(); - Assert.That(test.tests.Count == 2); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs.meta deleted file mode 100644 index 46aa76ec2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fb35253dbaabad84a815c3a9106cab8b -timeCreated: 1461708055 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs deleted file mode 100644 index 2336567b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs +++ /dev/null @@ -1,90 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestMultipleContractTypes2 : ZenjectUnitTestFixture - { - public class Bar - { - } - - public interface IFoo - { - } - - public interface IQux - { - } - - public class Foo : IQux, IFoo - { - } - - [Test] - public void Test1() - { - var types = new[] - { - typeof(Bar), - typeof(Foo) - }; - - Container.Bind(types).AsSingle().NonLazy(); - - Container.Resolve(); - Container.Resolve(); - } - - [Test] - public void TestInterfaces() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestAllInterfacesMistake() - { - Container.BindInterfacesTo(); - - // Should require setting scope - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestAllInterfaces() - { - Container.BindInterfacesTo().AsSingle().NonLazy(); - - Assert.IsNull(Container.TryResolve()); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestAllInterfacesAndSelf() - { - Container.BindInterfacesAndSelfTo().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestAllInterfacesAndSelfMistake() - { - Container.BindInterfacesAndSelfTo(); - - // Should require setting scope - Assert.Throws(() => Container.FlushBindings()); - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs.meta deleted file mode 100644 index 4b6106de6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b0c99e3d7ab1f7040b86e83fda23093b -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs deleted file mode 100644 index b9366b757..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestMultipleContractTypes3 : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test3 : Test0 - { - } - - class Test4 : Test0 - { - } - - class Test2 - { - public Test0 test; - - public Test2(Test0 test) - { - this.test = test; - } - } - - class Test1 - { - public List test; - - public Test1(List test) - { - this.test = test; - } - } - - [Test] - public void TestMultiBind2() - { - // Multi-binds should not map to single-binds - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs.meta deleted file mode 100644 index 2b6070240..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestMultipleContractTypes3.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a3c5d33d617b5d74386818cd004d2f3d -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs deleted file mode 100644 index d714e6ac8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs +++ /dev/null @@ -1,45 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestNonLazy : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void Test2() - { - Container.Bind().AsSingle(); - - Container.ResolveRoots(); - } - - [Test] - public void Test3() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle(); - - Container.ResolveRoots(); - } - - public class Foo - { - public Foo(Bar bar) - { - } - } - - public class Bar - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs.meta deleted file mode 100644 index acdaa2a57..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestNonLazy.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bd8592ec897336d4fb55f476488dfb1c -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs deleted file mode 100644 index 99db75dfe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs +++ /dev/null @@ -1,33 +0,0 @@ -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().To().AsSingle(); - - Assert.That(Container.Resolve() is Test2); - - Container.Rebind().To().AsSingle(); - - Assert.That(Container.Resolve() is Test3); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs.meta deleted file mode 100644 index 977645c69..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestRebind.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 389794c3c2d66a24f9146f9071f398aa -timeCreated: 1464374481 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs deleted file mode 100644 index 2341a53a0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs +++ /dev/null @@ -1,62 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestUnbind : ZenjectUnitTestFixture - { - interface ITest - { - } - - interface ITest2 - { - } - - class Test2 : ITest, ITest2 - { - } - - [Test] - public void Run() - { - Container.Bind().To().AsSingle(); - - Assert.IsNotNull(Container.Resolve()); - - Container.Unbind(); - - Assert.IsNull(Container.TryResolve()); - } - - [Test] - public void TestUnbindInterfaces() - { - Container.BindInterfacesTo().AsSingle(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - - Container.UnbindInterfacesTo(); - - Assert.IsNull(Container.TryResolve()); - Assert.IsNull(Container.TryResolve()); - } - - // Do we care about this? - //[Test] - public void TestUnbindAsSingle() - { - Container.Bind().To().AsSingle(); - - Container.Unbind(); - - Assert.IsNull(Container.TryResolve()); - - Container.Bind().To().AsSingle(); - - Assert.IsNotNull(Container.TryResolve()); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs.meta deleted file mode 100644 index 6f438564c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestUnbind.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7bc1066beaa29be488a974f611aadf7f -timeCreated: 1464374492 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs deleted file mode 100644 index ee55de7a3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.BindFeatures -{ - [TestFixture] - public class TestWithArguments : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.Bind().AsTransient().WithArguments(3).NonLazy(); - - Assert.IsEqual(Container.Resolve().Value, 3); - } - - [Test] - public void TestNullValues() - { - Container.Bind().AsSingle().WithArguments(3, (string)null); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, 3); - Assert.IsEqual(foo.Value2, null); - } - - interface IFoo - { - } - - class Foo : IFoo - { - public Foo( - int value, - [InjectOptional] - string value2) - { - Value = value; - Value2 = value2; - } - - public int Value - { - get; - private set; - } - - public string Value2 - { - get; - private set; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs.meta deleted file mode 100644 index cf1aa04d7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/BindFeatures/TestWithArguments.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a9729dccd0a5529458a8ef18263587ae -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings.meta deleted file mode 100644 index 4025d6414..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 12da5cd15bf088a46ba2934227c0334b -folderAsset: yes -timeCreated: 1461711435 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs deleted file mode 100644 index da882b90e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs +++ /dev/null @@ -1,260 +0,0 @@ -using System; -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFrom : ZenjectUnitTestFixture - { - [Test] - public void TestSelfSingle() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestSelfSingleExplicit() - { - Container.Bind().ToSelf().FromNew().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestSelfTransient() - { - Container.Bind().AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestSelfCached() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestConcreteSingle() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestConcreteTransient() - { - Container.Bind().To().AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestConcreteTransient2() - { - Container.Bind().To().AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestConcreteCached() - { - Container.Bind().AsCached().NonLazy(); - Container.Bind().To().AsCached().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestDuplicateBindingsFail() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.Throws( - () => Container.FlushBindings()); - } - - [Test] - public void TestConcreteMultipleTransient() - { - Container.Bind().To(typeof(Foo), typeof(Bar)).AsTransient().NonLazy(); - - var foos = Container.ResolveAll(); - - Assert.IsEqual(foos.Count, 2); - Assert.That(foos[0] is Foo); - Assert.That(foos[1] is Bar); - - var foos2 = Container.ResolveAll(); - - Assert.IsNotEqual(foos[0], foos2[0]); - Assert.IsNotEqual(foos[1], foos2[1]); - } - - [Test] - public void TestConcreteMultipleSingle() - { - Container.Bind().To(typeof(Foo), typeof(Bar)).AsSingle().NonLazy(); - - var foos = Container.ResolveAll(); - - Assert.IsEqual(foos.Count, 2); - Assert.That(foos[0] is Foo); - Assert.That(foos[1] is Bar); - - var foos2 = Container.ResolveAll(); - - Assert.IsEqual(foos[0], foos2[0]); - Assert.IsEqual(foos[1], foos2[1]); - } - - [Test] - public void TestMultipleBindingsSingleFail1() - { - Container.Bind(typeof(IFoo), typeof(IBar)).AsSingle(); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestMultipleBindingsSingleFail2() - { - Assert.Throws(() => Container.Bind(typeof(IFoo), typeof(IBar)).To().AsSingle()); - } - - [Test] - public void TestMultipleBindingsSingle() - { - Container.Bind(typeof(IFoo), typeof(IBar)).To().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.That(Container.Resolve() is Foo); - } - - [Test] - public void TestMultipleBindingsTransient() - { - Container.Bind(typeof(IFoo), typeof(IBar)).To().AsTransient().NonLazy(); - - Assert.That(Container.Resolve() is Foo); - Assert.That(Container.Resolve() is Foo); - - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestMultipleBindingsCached() - { - Container.Bind(typeof(IFoo), typeof(IBar)).To().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestMultipleBindingsConcreteMultipleSingle() - { - Container.Bind(typeof(IFoo), typeof(IBar)) - .To(new List {typeof(Foo), typeof(Bar)}).AsSingle().NonLazy(); - - var foos = Container.ResolveAll(); - var bars = Container.ResolveAll(); - - Assert.IsEqual(foos.Count, 2); - Assert.IsEqual(bars.Count, 2); - - Assert.That(foos[0] is Foo); - Assert.That(foos[1] is Bar); - - Assert.IsEqual(foos[0], bars[0]); - Assert.IsEqual(foos[1], bars[1]); - } - - [Test] - public void TestMultipleBindingsConcreteMultipleTransient() - { - Container.Bind(typeof(IFoo), typeof(IBar)).To(new List {typeof(Foo), typeof(Bar)}).AsTransient().NonLazy(); - - var foos = Container.ResolveAll(); - var bars = Container.ResolveAll(); - - Assert.IsEqual(foos.Count, 2); - Assert.IsEqual(bars.Count, 2); - - Assert.That(foos[0] is Foo); - Assert.That(foos[1] is Bar); - - Assert.IsNotEqual(foos[0], bars[0]); - Assert.IsNotEqual(foos[1], bars[1]); - } - - [Test] - public void TestMultipleBindingsConcreteMultipleCached() - { - Container.Bind(typeof(IFoo), typeof(IBar)).To(new List {typeof(Foo), typeof(Bar)}).AsCached().NonLazy(); - Container.Bind().AsCached().NonLazy(); - Container.Bind().AsCached().NonLazy(); - - var foos = Container.ResolveAll(); - var bars = Container.ResolveAll(); - - Assert.IsEqual(foos.Count, 2); - Assert.IsEqual(bars.Count, 2); - - Assert.That(foos[0] is Foo); - Assert.That(foos[1] is Bar); - - Assert.IsEqual(foos[0], bars[0]); - Assert.IsEqual(foos[1], bars[1]); - - Assert.IsNotEqual(foos[0], Container.Resolve()); - Assert.IsNotEqual(foos[1], Container.Resolve()); - } - - interface IBar - { - } - - interface IFoo - { - } - - class Foo : IFoo, IBar - { - } - - class Bar : IFoo, IBar - { - } - - public class Qux - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs.meta deleted file mode 100644 index f6892b772..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFrom.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6a67145dedecd9947bb94c542f6474ae -timeCreated: 1485738783 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs deleted file mode 100644 index c604f3bde..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs +++ /dev/null @@ -1,187 +0,0 @@ -using System.Linq; -using ModestTree; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromFactory : ZenjectUnitTestFixture - { - static Foo StaticFoo = new Foo(); - - [Test] - public void Test1() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsCached()); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestOldVersion() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromFactory(); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestMoveIntoSubcontainers() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsCached()).MoveIntoDirectSubContainers(); - - Assert.That(Container.AllContracts.Where(x => x.Type == typeof(IFactory)).IsEmpty()); - - Assert.IsNull(Container.TryResolve()); - - var subContainer = Container.CreateSubContainer(); - - Assert.IsEqual(subContainer.Resolve(), StaticFoo); - - Assert.That(subContainer.AllContracts.Where(x => x.Type == typeof(IFactory)).Count() == 1); - - subContainer.Resolve(); - subContainer.Resolve(); - subContainer.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void Test2() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsTransient()); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 3); - } - - [Test] - public void Test3() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsTransient()).AsCached(); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestConcreteSingle() - { - FooFactory.InstanceCount = 0; - - Container.Bind().To().FromIFactory(b => b.To().AsCached()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestSelfAndConcreteSingle() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle().NonLazy(); - Container.Bind().To().FromResolve(); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestSelfCached() - { - FooFactory.InstanceCount = 0; - - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - [Test] - public void TestConcreteCached() - { - FooFactory.InstanceCount = 0; - - Container.Bind().To().FromIFactory(b => b.To().AsCached()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), StaticFoo); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(FooFactory.InstanceCount, 1); - } - - class FooFactory : IFactory - { - public static int InstanceCount; - - public FooFactory() - { - InstanceCount++; - } - - public Foo Create() - { - return StaticFoo; - } - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs.meta deleted file mode 100644 index d61193790..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromFactory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d88c26093930ebe4c9c294ae22d12754 -timeCreated: 1485738788 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs deleted file mode 100644 index 295099833..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs +++ /dev/null @@ -1,117 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromGetter : ZenjectUnitTestFixture - { - [Test] - public void TestTransient() - { - Container.Bind().AsSingle(); - Container.Bind().FromResolveGetter(x => x.Bar); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve().Bar); - } - - [Test] - public void TestSingleFailure() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - Container.Bind().FromResolveGetter(x => x.Bar).AsSingle(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestMultiple() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - Container.Bind().FromResolveAllGetter(x => x.Bar).AsSingle(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestInjectSource1() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().AsCached(); - - subContainer.Bind().FromResolveAllGetter(x => x.Bar); - - Assert.IsEqual(subContainer.ResolveAll().Count, 3); - } - - [Test] - public void TestInjectSource2() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().AsCached(); - - subContainer.Bind().FromResolveAllGetter(null, x => x.Bar, InjectSources.Local); - - Assert.IsEqual(subContainer.ResolveAll().Count, 1); - } - - [Test] - public void TestInjectSource3() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().AsCached(); - - subContainer.Bind().FromResolveGetter(null, x => x.Bar); - - Assert.IsNotNull(subContainer.Resolve()); - } - - [Test] - public void TestInjectSource4() - { - Container.Bind().AsCached(); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().AsCached(); - subContainer.Bind().AsCached(); - - subContainer.Bind().FromResolveGetter(null, x => x.Bar, InjectSources.Parent); - - Assert.IsEqual(subContainer.ResolveAll().Count, 1); - } - - interface IBar - { - } - - class Bar : IBar - { - } - - class Foo - { - public Foo() - { - Bar = new Bar(); - } - - public Bar Bar - { - get; private set; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs.meta deleted file mode 100644 index 3647b1df1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromGetter.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1d62dc62d45050143ae156ca7f735abf -timeCreated: 1485738782 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs deleted file mode 100644 index 2d6504610..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromIFactory : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.BindFactory().WithId("foo1") - .FromIFactory(x => x.To().AsCached().WithArguments("asdf")); - - Container.BindFactory().WithId("foo2") - .FromIFactory(x => x.To().AsCached().WithArguments("zxcv")); - - var factory1 = Container.ResolveId("foo1"); - var factory2 = Container.ResolveId("foo2"); - - Assert.IsEqual(factory1.Create().Value, "asdf"); - Assert.IsEqual(factory2.Create().Value, "zxcv"); - } - - public class Foo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - } - - public class FooFactory : IFactory - { - readonly string _value; - readonly DiContainer _container; - - public FooFactory( - DiContainer container, - string value) - { - _value = value; - _container = container; - } - - public Foo Create() - { - return _container.Instantiate(new [] { _value }); - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs.meta deleted file mode 100644 index 7148115db..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 4dcea3c765b0e9149915042c669c1046 -timeCreated: 1520406909 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs deleted file mode 100644 index 8ded7a11d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs +++ /dev/null @@ -1,74 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromIFactory2 : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.BindFactory().WithId("foo1") - .FromIFactory(x => x.To().AsCached().WithArguments("asdf")); - - Container.BindFactory().WithId("foo2") - .FromIFactory(x => x.To().AsCached().WithArguments("zxcv")); - - var factory1 = Container.ResolveId("foo1"); - var factory2 = Container.ResolveId("foo2"); - - var foo1 = factory1.Create(5); - var foo2 = factory2.Create(2); - - Assert.IsEqual(foo1.Value, "asdf"); - Assert.IsEqual(foo1.Value2, 5); - - Assert.IsEqual(foo2.Value, "zxcv"); - Assert.IsEqual(foo2.Value2, 2); - } - - public class Foo - { - public Foo(string value, int value2) - { - Value = value; - Value2 = value2; - } - - public int Value2 - { - get; private set; - } - - public string Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - } - - public class FooFactory : IFactory - { - readonly string _value; - readonly DiContainer _container; - - public FooFactory( - DiContainer container, - string value) - { - _value = value; - _container = container; - } - - public Foo Create(int value) - { - return _container.Instantiate(new object [] { value, _value }); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs.meta deleted file mode 100644 index 79cface0e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromIFactory2.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 5f3553d18dec30b4eba317e9036f97dd -timeCreated: 1520700394 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs deleted file mode 100644 index 9eb603742..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs +++ /dev/null @@ -1,52 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromInstance : ZenjectUnitTestFixture - { - [Test] - public void TestTransient() - { - var foo = new Foo(); - - Container.Bind().FromInstance(foo).NonLazy(); - Container.Bind().FromInstance(foo).NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestSingle() - { - Container.Bind().FromInstance(new Foo()).AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.FlushBindings()); - } - - // There's really no good reason to do this but it is part of the api - [Test] - public void TestCached() - { - var foo = new Foo(); - - Container.Bind().FromInstance(foo).AsSingle().NonLazy(); - Container.Bind().FromInstance(foo).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), foo); - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs.meta deleted file mode 100644 index 7dd58f4ca..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromInstance.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 7bf907a08d456614db4e71411381f66a -timeCreated: 1485738784 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs deleted file mode 100644 index 65b3ccd1d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromMethod : ZenjectUnitTestFixture - { - [Test] - public void TestSingle() - { - var foo = new Foo(); - - Container.Bind().FromMethod(ctx => foo).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestTransient() - { - var foo = new Foo(); - - Container.Bind().FromMethod(ctx => foo).AsTransient().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestCached() - { - var foo = new Foo(); - - Container.Bind().FromMethod(ctx => foo).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - Foo CreateFoo(InjectContext ctx) - { - return new Foo(); - } - - [Test] - public void TestTransient2() - { - int numCalls = 0; - - Func method = ctx => - { - numCalls++; - return null; - }; - - Container.Bind().FromMethod(method).AsTransient().NonLazy(); - Container.Bind().To().FromMethod(method).AsTransient().NonLazy(); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(numCalls, 4); - } - - [Test] - public void TestCached2() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromMethod(ctx => new Foo()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs.meta deleted file mode 100644 index 22967eabc..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethod.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2f937d712d2be4042b394985b5b8f441 -timeCreated: 1485738782 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs deleted file mode 100644 index 6cc689bb6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromMethodMultiple : ZenjectUnitTestFixture - { - [Test] - public void TestSingle() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultiple(ctx => new[] { foo }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestSingle5() - { - // This is weird but consistent with how AsSingle is interpreted for other From types - // like FromSubcontainerResolve, FromComponentInPrefab, etc. - // The 'single' is really refering to the fact that it's a single resolve handler, not a - // single instance - Container.Bind().FromMethodMultiple(ctx => new[] { new Foo(), new Foo() }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestMisc() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - - Container.Bind().FromMethodMultiple(ctx => new[] { foo1, foo2 }); - - var foos = Container.ResolveAll(); - Assert.IsEqual(foos[0], foo1); - Assert.IsEqual(foos[1], foo2); - } - - [Test] - public void TestMisc2() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - var foo3 = new Foo(); - var foo4 = new Foo(); - - Container.Bind().FromMethodMultiple(ctx => new[] { foo1, foo2 }); - Container.Bind().FromMethodMultiple(ctx => new[] { foo3, foo4 }); - - var foos = Container.ResolveAll(); - - Assert.IsEqual(foos[0], foo1); - Assert.IsEqual(foos[1], foo2); - Assert.IsEqual(foos[2], foo3); - Assert.IsEqual(foos[3], foo4); - } - - [Test] - public void TestTransient() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultiple(ctx => new[] { foo }).AsTransient().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestCached() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultiple(ctx => new[] { foo }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - IEnumerable CreateFoos(InjectContext ctx) - { - yield return new Foo(); - } - - [Test] - public void TestTransient2() - { - int numCalls = 0; - - Func> method = ctx => - { - numCalls++; - return new[] { new Foo() }; - }; - - Container.Bind().FromMethodMultiple(method).AsTransient().NonLazy(); - Container.Bind().To().FromMethodMultiple(method).AsTransient().NonLazy(); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(numCalls, 4); - } - - [Test] - public void TestCached2() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromMethodMultiple(ctx => new[] { new Foo() }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs.meta deleted file mode 100644 index 098735287..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultiple.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fadc8263bac9f4941b06a03c82251f36 -timeCreated: 1485738789 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs deleted file mode 100644 index c6c5d75b6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System; -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromMethodMultipleUntyped : ZenjectUnitTestFixture - { - [Test] - public void TestSingle() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestSingle5() - { - // This is weird but consistent with how AsSingle is interpreted for other From types - // like FromSubcontainerResolve, FromComponentInPrefab, etc. - // The 'single' is really refering to the fact that it's a single resolve handler, not a - // single instance - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { new Foo(), new Foo() }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestMisc() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo1, foo2 }); - - var foos = Container.ResolveAll(); - Assert.IsEqual(foos[0], foo1); - Assert.IsEqual(foos[1], foo2); - } - - [Test] - public void TestMisc2() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - var foo3 = new Foo(); - var foo4 = new Foo(); - - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo1, foo2 }); - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo3, foo4 }); - - var foos = Container.ResolveAll(); - - Assert.IsEqual(foos[0], foo1); - Assert.IsEqual(foos[1], foo2); - Assert.IsEqual(foos[2], foo3); - Assert.IsEqual(foos[3], foo4); - } - - [Test] - public void TestTransient() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo }).AsTransient().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestCached() - { - var foo = new Foo(); - - Container.Bind().FromMethodMultipleUntyped(ctx => new[] { foo }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), foo); - } - - IEnumerable CreateFoos(InjectContext ctx) - { - yield return new Foo(); - } - - [Test] - public void TestTransient2() - { - int numCalls = 0; - - Func> method = ctx => - { - numCalls++; - return new[] { new Foo() }; - }; - - Container.Bind().FromMethodMultipleUntyped(method).AsTransient().NonLazy(); - Container.Bind().To().FromMethodMultipleUntyped(method).AsTransient().NonLazy(); - - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - Container.Resolve(); - - Assert.IsEqual(numCalls, 4); - } - - [Test] - public void TestCached2() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromMethodMultipleUntyped(ctx => new[] { new Foo() }).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs.meta deleted file mode 100644 index b3def1d54..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromMethodMultipleUntyped.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c9c6a37cf443b134e91d0b7eb1c1532e -timeCreated: 1529064998 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs deleted file mode 100644 index 278c984e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs +++ /dev/null @@ -1,207 +0,0 @@ -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromResolve : ZenjectUnitTestFixture - { - [Test] - public void TestTransient() - { - var foo = new Foo(); - - Container.BindInstance(foo); - Container.Bind().To().FromResolve(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestIdentifier() - { - var foo = new Foo(); - - Container.Bind().WithId("foo").FromInstance(foo); - Container.Bind().To().FromResolve("foo"); - - Assert.IsEqual(Container.Resolve(), Container.ResolveId("foo")); - Assert.IsEqual(Container.Resolve(), foo); - } - - [Test] - public void TestCached() - { - Container.Bind().AsTransient(); - Container.Bind().To().FromResolve().AsCached(); - - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestSingle() - { - var foo = new Foo(); - Container.Bind().FromInstance(foo); - Container.Bind().To().FromResolve(); - - Assert.IsEqual(Container.Resolve(), foo); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestNoMatch() - { - Container.Bind().To().FromResolve(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestSingleFailure() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - Container.Bind().To().FromResolve(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestInfiniteLoop() - { - Container.Bind().To().FromResolve().AsSingle(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestResolveManyTransient() - { - Container.Bind().AsTransient(); - Container.Bind().FromInstance(new Foo()); - - Container.Bind().To().FromResolveAll(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestResolveManyTransient2() - { - Container.Bind().AsTransient(); - Container.Bind().FromInstance(new Foo()); - - Container.Bind(typeof(IFoo), typeof(IBar)).To().FromResolveAll(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestResolveManyCached() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Container.Bind().To().FromResolveAll().AsCached(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.That(Enumerable.SequenceEqual(Container.ResolveAll(), Container.ResolveAll())); - } - - [Test] - public void TestResolveManyCached2() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Container.Bind(typeof(IFoo), typeof(IBar)).To().FromResolveAll().AsCached(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.That(Enumerable.SequenceEqual(Container.ResolveAll().Cast(), Container.ResolveAll().Cast())); - } - - [Test] - public void TestResolveManyCached3() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Container.Bind().To().FromResolveAll().AsCached(); - Container.Bind().To().FromResolveAll().AsCached(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.IsEqual(Container.ResolveAll().Count, 2); - Assert.That(!Enumerable.SequenceEqual(Container.ResolveAll().Cast(), Container.ResolveAll().Cast())); - } - - [Test] - public void TestResolveSingleLocal() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - - Container.Bind().FromInstance(foo1); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().FromInstance(foo2); - - subContainer.Bind().To().FromResolve(); - - Assert.IsEqual(subContainer.Resolve(), foo2); - } - - [Test] - public void TestInjectSource1() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - - Container.Bind().FromInstance(foo1); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().FromInstance(foo2); - - subContainer.Bind().To().FromResolve(null, InjectSources.Parent); - - Assert.IsEqual(subContainer.Resolve(), foo1); - } - - [Test] - public void TestInjectSource2() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - var foo3 = new Foo(); - - Container.Bind().FromInstance(foo1); - - var subContainer = Container.CreateSubContainer(); - subContainer.Bind().FromInstance(foo2); - subContainer.Bind().FromInstance(foo3); - - subContainer.Bind().To().FromResolveAll(null, InjectSources.Local); - - Assert.Throws(() => subContainer.Resolve()); - Assert.That(Enumerable.SequenceEqual(subContainer.ResolveAll(), new [] { foo2, foo3, })); - } - - interface IBar - { - } - - interface IFoo - { - } - - class Foo : IFoo, IBar - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs.meta deleted file mode 100644 index 49a60985c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromResolve.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0b37e8adbb14af84ba212744b2bd2804 -timeCreated: 1485738781 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs deleted file mode 100644 index a36ea7e3d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs +++ /dev/null @@ -1,124 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromSubContainerInstaller : ZenjectUnitTestFixture - { - [Test] - public void TestInstallerSelfSingle() - { - Container.Bind().FromSubContainerResolve().ByInstaller().AsSingle().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsEqual(foo, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfTransient() - { - Container.Bind().FromSubContainerResolve().ByInstaller().AsTransient().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsNotEqual(foo, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfCached() - { - Container.Bind().FromSubContainerResolve().ByInstaller().AsSingle().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsEqual(foo, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfSingleMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByInstaller().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Bar, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfCachedMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve().ByInstaller().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestInstallerSelfSingleMultipleMatches() - { - Container.Bind().FromSubContainerResolveAll().ByInstaller().AsSingle().NonLazy(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestInstallerSelfIdentifiersFails() - { - Container.Bind().FromSubContainerResolve().ByInstaller().AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestInstallerSelfIdentifiers() - { - Container.Bind().FromSubContainerResolve("gorp").ByInstaller().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - public class Gorp - { - } - - public class Qux - { - } - - public class Bar - { - } - - public interface IFoo - { - } - - public class Foo : IFoo - { - public Foo(Bar bar) - { - Bar = bar; - } - - public Bar Bar - { - get; - private set; - } - } - - class FooInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Container.Bind().AsTransient(); - Container.Bind().FromInstance(new Qux()); - - Container.Bind().WithId("gorp").AsTransient(); - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs.meta deleted file mode 100644 index 8ee8a9a2b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstaller.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0d941aa49ba79854487ffabb59b0a24f -timeCreated: 1485738781 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs deleted file mode 100644 index 627e5ed75..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs +++ /dev/null @@ -1,128 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromSubContainerInstance : ZenjectUnitTestFixture - { - [Test] - public void TestInstallerSelfSingle() - { - Container.Bind().FromSubContainerResolve() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfTransient() - { - Container.Bind().FromSubContainerResolve().ByInstance( - CreateFooSubContainer()).AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfCached() - { - Container.Bind().FromSubContainerResolve() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfSingleMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Bar, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfCachedMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestInstallerSelfSingleMultipleMatches() - { - Container.Bind().FromSubContainerResolveAll() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestInstallerSelfIdentifiersFails() - { - Container.Bind().FromSubContainerResolve() - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestInstallerSelfIdentifiers() - { - Container.Bind().FromSubContainerResolve("gorp") - .ByInstance(CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - public class Gorp - { - } - - public class Qux - { - } - - public class Bar - { - } - - public interface IFoo - { - } - - public class Foo : IFoo - { - public Foo(Bar bar) - { - Bar = bar; - } - - public Bar Bar - { - get; - private set; - } - } - - DiContainer CreateFooSubContainer() - { - var subContainer = new DiContainer(); - - subContainer.Bind().AsSingle(); - subContainer.Bind().AsSingle(); - - subContainer.Bind().AsTransient(); - subContainer.Bind().FromInstance(new Qux()); - - subContainer.Bind().WithId("gorp").AsTransient(); - - return subContainer; - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs.meta deleted file mode 100644 index ce14de391..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstance.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1435f07f5e446424ab1523f4aed91c0c -timeCreated: 1535189469 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs deleted file mode 100644 index 8f5dc320e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs +++ /dev/null @@ -1,129 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromSubContainerInstanceGetter : ZenjectUnitTestFixture - { - [Test] - public void TestInstallerSelfSingle() - { - Container.Bind().FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfTransient() - { - Container.Bind().FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfCached() - { - Container.Bind().FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestInstallerSelfSingleMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Bar, Container.Resolve()); - } - - [Test] - public void TestInstallerSelfCachedMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestInstallerSelfSingleMultipleMatches() - { - Container.Bind().FromSubContainerResolveAll() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsEqual(Container.ResolveAll().Count, 2); - } - - [Test] - public void TestInstallerSelfIdentifiersFails() - { - Container.Bind().FromSubContainerResolve() - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestInstallerSelfIdentifiers() - { - Container.Bind().FromSubContainerResolve("gorp") - .ByInstanceGetter(ctx => CreateFooSubContainer()).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - public class Gorp - { - } - - public class Qux - { - } - - public class Bar - { - } - - public interface IFoo - { - } - - public class Foo : IFoo - { - public Foo(Bar bar) - { - Bar = bar; - } - - public Bar Bar - { - get; - private set; - } - } - - DiContainer CreateFooSubContainer() - { - var subContainer = new DiContainer(); - - subContainer.Bind().AsSingle(); - subContainer.Bind().AsSingle(); - - subContainer.Bind().AsTransient(); - subContainer.Bind().FromInstance(new Qux()); - - subContainer.Bind().WithId("gorp").AsTransient(); - - return subContainer; - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs.meta deleted file mode 100644 index 77c9cc7c4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerInstanceGetter.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 933792039e2b04441933af16ce414f05 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs deleted file mode 100644 index cff5f5032..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs +++ /dev/null @@ -1,144 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromSubContainerMethod : ZenjectUnitTestFixture - { - [Test] - public void TestMethodSelfSingle() - { - Container.Bind().FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsEqual(foo, Container.Resolve()); - } - - [Test] - public void TestMethodSelfTransient() - { - Container.Bind().FromSubContainerResolve().ByMethod(InstallFooFacade).AsTransient().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsNotEqual(foo, Container.Resolve()); - } - - [Test] - public void TestDanglingBinding() - { - Container.Bind().FromSubContainerResolve(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestMethodSelfCached() - { - Container.Bind().FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - var foo = Container.Resolve(); - Assert.IsNotNull(foo.Bar); - Assert.IsEqual(foo, Container.Resolve()); - } - - [Test] - public void TestMethodSelfCachedMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(Bar)).FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Bar, Container.Resolve()); - } - - [Test] - public void TestMethodConcreteSingle() - { - Container.Bind().To().FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestMethodConcreteTransient() - { - Container.Bind().To().FromSubContainerResolve().ByMethod(InstallFooFacade).AsTransient().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestMethodConcreteCached() - { - Container.Bind().To() - .FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Bar); - } - - [Test] - public void TestMethodConcreteCachedMultipleContracts() - { - Container.Bind(typeof(Foo), typeof(IFoo)).To().FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestMethodSelfIdentifiersFails() - { - Container.Bind().FromSubContainerResolve().ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestMethodSelfIdentifiers() - { - Container.Bind().FromSubContainerResolve("gorp").ByMethod(InstallFooFacade).AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - public class Gorp - { - } - - public class Bar - { - } - - public interface IFoo - { - Bar Bar - { - get; - } - } - - public class Foo : IFoo - { - public Foo(Bar bar) - { - Bar = bar; - } - - public Bar Bar - { - get; - private set; - } - } - - void InstallFooFacade(DiContainer container) - { - container.Bind().AsSingle(); - container.Bind().AsSingle(); - - container.Bind().WithId("gorp").AsTransient(); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs.meta deleted file mode 100644 index b5c0f38fa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestFromSubContainerMethod.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0aca0ea3c3e68134886983eb884c26c0 -timeCreated: 1485738781 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs deleted file mode 100644 index b543b2bca..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestNonGeneric : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Assert.Throws(() => - Container.Bind(typeof(IFoo), typeof(IBar)).To(typeof(Foo)).AsCached()); - } - - [Test] - public void Test2() - { - Assert.Throws(() => - Container.Bind().To(typeof(Bar)).AsCached()); - } - - [Test] - public void Test3() - { - Assert.Throws(() => - Container.Bind(typeof(IFoo)).To(typeof(Bar), typeof(Foo)).AsCached()); - } - - [Test] - public void Test4() - { - // This case is more lenient and just ignores invalid bindings - Container.Bind(typeof(IFoo), typeof(IBar)).To(typeof(Foo), typeof(Bar)).AsCached(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - } - - public interface IBar - { - } - - public interface IFoo - { - } - - public class Bar : IBar - { - } - - public class Foo : IFoo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs.meta deleted file mode 100644 index 433b1035f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestNonGeneric.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 304074b8e887c2945b28ba359d69b282 -timeCreated: 1521270889 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs deleted file mode 100644 index d84cd45ec..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs +++ /dev/null @@ -1,150 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestWithKernel : ZenjectUnitTestFixture - { - static int GlobalInitializeCount; - - public class Foo : IInitializable - { - public bool WasInitialized - { - get; private set; - } - - public int InitializeCount - { - get; private set; - } - - public void Initialize() - { - InitializeCount = ++GlobalInitializeCount; - WasInitialized = true; - } - } - - public class FooFacade - { - [Inject] - public Foo Foo - { - get; private set; - } - } - - public class FooInstaller : Installer - { - public override void InstallBindings() - { - InstallFoo(Container); - } - } - - static void InstallFoo(DiContainer subContainer) - { - subContainer.Bind().AsSingle(); - subContainer.BindInterfacesAndSelfTo().AsSingle(); - } - - [Test] - public void TestByInstaller() - { - Container.Bind().FromSubContainerResolve() - .ByInstaller().WithKernel().AsSingle(); - - ZenjectManagersInstaller.Install(Container); - Container.ResolveRoots(); - - var facade = Container.Resolve(); - - Assert.That(!facade.Foo.WasInitialized); - Container.Resolve().Initialize(); - Assert.That(facade.Foo.WasInitialized); - } - - [Test] - public void TestByMethod() - { - Container.Bind().FromSubContainerResolve() - .ByMethod(InstallFoo).WithKernel().AsSingle(); - - ZenjectManagersInstaller.Install(Container); - Container.ResolveRoots(); - - var facade = Container.Resolve(); - - Assert.That(!facade.Foo.WasInitialized); - Container.Resolve().Initialize(); - Assert.That(facade.Foo.WasInitialized); - } - - public class FooKernel : Kernel - { - } - - public class Bar : IInitializable - { - public int InitializeCount - { - get; private set; - } - - public void Initialize() - { - InitializeCount = ++GlobalInitializeCount; - } - } - - [Test] - public void TestByInstallerCustomOrder() - { - GlobalInitializeCount = 0; - - Container.BindInterfacesAndSelfTo().AsSingle(); - Container.Bind().FromSubContainerResolve() - .ByInstaller().WithKernel().AsSingle(); - - ZenjectManagersInstaller.Install(Container); - Container.ResolveRoots(); - - var facade = Container.Resolve(); - - Assert.That(!facade.Foo.WasInitialized); - Container.Resolve().Initialize(); - Assert.That(facade.Foo.WasInitialized); - - Assert.IsEqual(Container.Resolve().InitializeCount, 1); - Assert.IsEqual(facade.Foo.InitializeCount, 2); - } - - [Test] - public void TestByInstallerCustomOrder2() - { - GlobalInitializeCount = 0; - - Container.BindInterfacesAndSelfTo().AsSingle(); - Container.Bind().FromSubContainerResolve() - .ByInstaller().WithKernel().AsSingle(); - - Container.BindExecutionOrder(-1); - - ZenjectManagersInstaller.Install(Container); - Container.ResolveRoots(); - - var facade = Container.Resolve(); - - Assert.That(!facade.Foo.WasInitialized); - Container.Resolve().Initialize(); - Assert.That(facade.Foo.WasInitialized); - - Assert.IsEqual(Container.Resolve().InitializeCount, 2); - Assert.IsEqual(facade.Foo.InitializeCount, 1); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs.meta deleted file mode 100644 index 11236b7d9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Bindings/TestWithKernel.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: a2f3ac87f43046e4896f1a00fa6a847e -timeCreated: 1535185352 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions.meta deleted file mode 100644 index 6f602979b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a01ea76b569d29e408de9e06455bc52f -folderAsset: yes -timeCreated: 1461711436 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs deleted file mode 100644 index a669b7e47..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs +++ /dev/null @@ -1,68 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsBasic : ZenjectUnitTestFixture - { - public interface IFoo - { - } - - class Foo1 : IFoo - { - } - - class Foo2 : IFoo - { - } - - class Bar1 - { - public IFoo Foo; - - public Bar1(IFoo foo) - { - Foo = foo; - } - } - - class Bar2 - { - public IFoo Foo; - - public Bar2(IFoo foo) - { - Foo = foo; - } - } - - [Test] - public void Test1() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().WhenInjectedInto().NonLazy(); - - Assert.IsNotEqual( - Container.Resolve().Foo, Container.Resolve().Foo); - } - - [Test] - public void Test2() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().To().AsSingle().WhenNotInjectedInto().NonLazy(); - - Assert.IsNotEqual( - Container.Resolve().Foo, Container.Resolve().Foo); - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs.meta deleted file mode 100644 index f101c3e75..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsBasic.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6cb63718e40b7bd429fc93d4542aaf01 -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs deleted file mode 100644 index 213e98626..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsComplex : ZenjectUnitTestFixture - { - class Foo - { - } - - class Bar - { - public Foo Foo; - - public Bar(Foo foo) - { - Foo = foo; - } - } - - [Test] - public void TestCorrespondingIdentifiers() - { - var foo1 = new Foo(); - var foo2 = new Foo(); - - Container.Bind().WithId("Bar1").AsTransient().NonLazy(); - Container.Bind().WithId("Bar2").AsTransient().NonLazy(); - - Container.BindInstance(foo1).When(c => c.ParentContexts.Where(x => x.MemberType == typeof(Bar) && Equals(x.Identifier, "Bar1")).Any()); - Container.BindInstance(foo2).When(c => c.ParentContexts.Where(x => x.MemberType == typeof(Bar) && Equals(x.Identifier, "Bar2")).Any()); - - Assert.IsEqual(Container.ResolveId("Bar1").Foo, foo1); - Assert.IsEqual(Container.ResolveId("Bar2").Foo, foo2); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs.meta deleted file mode 100644 index 08fb4bdb0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsComplex.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: f34becbac266acf42a68abcd73423b00 -timeCreated: 1461708055 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs deleted file mode 100644 index 543c97365..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs +++ /dev/null @@ -1,55 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsFieldName : ZenjectUnitTestFixture - { - class Test0 - { - - } - - class Test1 - { - public Test1(Test0 name1) - { - } - } - - class Test2 - { - public Test2(Test0 name2) - { - } - } - - public override void Setup() - { - base.Setup(); - Container.Bind().AsSingle().When(r => r.MemberName == "name1"); - } - - [Test] - public void TestNameConditionError() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestNameConditionSuccess() - { - Container.Bind().AsSingle().NonLazy(); - - var test1 = Container.Resolve(); - - Assert.That(test1 != null); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs.meta deleted file mode 100644 index 2696568f2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsFieldName.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6eacf4d3f8215d54dadba7ba02a91fbf -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs deleted file mode 100644 index 3b492aaf6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs +++ /dev/null @@ -1,144 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsIdentifier : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - public Test1( - [Inject(Id ="foo")] - Test0 name1) - { - } - } - - class Test2 - { - [Inject(Id ="foo")] - public Test0 name2 = null; - } - - [Test] - public void TestUnspecifiedNameConstructorInjection() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestUnspecifiedNameFieldInjection() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().AsTransient().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestSuccessConstructorInjectionString() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("foo").FromInstance(new Test0()).NonLazy(); - - // Should not throw exceptions - Container.Resolve(); - - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestSuccessFieldInjectionString() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("foo").FromInstance(new Test0()).NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - class Test3 - { - public Test3( - [Inject(Id ="TestValue2")] - Test0 test0) - { - } - } - - class Test4 - { - - } - - [Test] - public void TestFailConstructorInjectionEnum() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("TestValue1").FromInstance(new Test0()).NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestSuccessConstructorInjectionEnum() - { - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("TestValue2").FromInstance(new Test0()).NonLazy(); - - // No exceptions - Container.Resolve(); - - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestFailFieldInjectionEnum() - { - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("TestValue1").FromInstance(new Test0()).NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestSuccessFieldInjectionEnum() - { - Container.Bind().AsTransient().NonLazy(); - - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().WithId("TestValue3").FromInstance(new Test0()).NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs.meta deleted file mode 100644 index 1acad601e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a3c3d9696613b32448c9d67ce36945e8 -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs deleted file mode 100644 index 5a37cd4f0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsParents : ZenjectUnitTestFixture - { - class Test0 - { - } - - interface ITest1 - { - } - - class Test1 : ITest1 - { - public Test0 test0; - - public Test1(Test0 test0) - { - this.test0 = test0; - } - } - - class Test2 : ITest1 - { - public Test0 test0; - - public Test2(Test0 test0) - { - this.test0 = test0; - } - } - - class Test3 : ITest1 - { - public Test1 test1; - - public Test3(Test1 test1) - { - this.test1 = test1; - } - } - - class Test4 : ITest1 - { - public Test1 test1; - - public Test4(Test1 test1) - { - this.test1 = test1; - } - } - - [Test] - public void TestCase1() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().When(c => c.AllObjectTypes.Contains(typeof(Test2))); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestCase2() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().When(c => c.AllObjectTypes.Contains(typeof(Test1))); - - var test1 = Container.Resolve(); - Assert.That(test1 != null); - } - - // Test using parents to look deeper up the heirarchy.. - [Test] - public void TestCase3() - { - var t0a = new Test0(); - var t0b = new Test0(); - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - Container.Bind().AsTransient(); - - Container.Bind().FromInstance(t0a).When(c => c.AllObjectTypes.Contains(typeof(Test3))); - Container.Bind().FromInstance(t0b).When(c => c.AllObjectTypes.Contains(typeof(Test4))); - - var test3 = Container.Resolve(); - - var test4 = Container.Resolve(); - - Assert.That(ReferenceEquals(test3.test1.test0, t0a)); - Assert.That(ReferenceEquals(test4.test1.test0, t0b)); - } - - [Test] - public void TestCase4() - { - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().When(c => c.AllObjectTypes.Contains(typeof(ITest1))); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestCase5() - { - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().When(c => c.AllObjectTypes.Contains(typeof(Test2))); - - var test1 = Container.Resolve(); - Assert.That(test1 != null); - } - - [Test] - public void TestCase6() - { - Container.Bind().To().AsSingle().NonLazy(); - Container.Bind().AsSingle().When(c => c.AllObjectTypes.Where(x => typeof(ITest1).IsAssignableFrom(x)).Any()); - - var test1 = Container.Resolve(); - Assert.That(test1 != null); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs.meta deleted file mode 100644 index e0b61508d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsParents.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 12290b4e2fc99dd4197a95555c4b7742 -timeCreated: 1461708048 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs deleted file mode 100644 index c98593026..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs +++ /dev/null @@ -1,54 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsTarget : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - public Test1(Test0 test) - { - } - } - - class Test2 - { - public Test2(Test0 test) - { - } - } - - public override void Setup() - { - base.Setup(); - Container.Bind().AsSingle().When(r => r.ObjectType == typeof(Test2)); - } - - [Test] - public void TestTargetConditionError() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestTargetConditionSuccess() - { - Container.Bind().AsSingle().NonLazy(); - - var test2 = Container.Resolve(); - - Assert.That(test2 != null); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs.meta deleted file mode 100644 index ff70b1d67..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTarget.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: fa53be31526be634795d3b724199e7ea -timeCreated: 1461708055 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs deleted file mode 100644 index 7acb17ac7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs +++ /dev/null @@ -1,38 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestConditionsTargetInstance : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - [Inject] - public Test0 test0 = null; - } - - Test1 _test1; - - public override void Setup() - { - base.Setup(); - - _test1 = new Test1(); - Container.Bind().AsSingle().When(r => r.ObjectInstance == _test1); - Container.Bind().FromInstance(_test1); - } - - [Test] - public void TestTargetConditionError() - { - Container.Inject(_test1); - - Assert.That(_test1.test0 != null); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs.meta deleted file mode 100644 index f19f99aa0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsTargetInstance.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0f79fbd0fa046ae429a33becfec16c75 -timeCreated: 1461708048 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs deleted file mode 100644 index 305381e29..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs +++ /dev/null @@ -1,119 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestIdentifierTypes : ZenjectUnitTestFixture - { - class Foo - { - } - - enum Things - { - Thing1, - Thing2 - } - - class Test0 - { - public Test0( - [Inject(Id = "asdf")] - Foo foo) - { - } - } - - [Test] - public void TestStringIdentifiers1() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestStringIdentifiers2() - { - Container.Bind().WithId("asdf").AsTransient(); - Container.Bind().AsTransient(); - - Assert.IsNotNull(Container.Resolve()); - } - - class Test1 - { - public Test1( - [Inject(Id = 5)] - Foo foo) - { - } - } - - [Test] - public void TestIntIdentifiers1() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestIntIdentifiers2() - { - Container.Bind().WithId(4).AsTransient(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestIntIdentifiers3() - { - Container.Bind().WithId(5).AsTransient(); - Container.Bind().AsTransient(); - - Assert.IsNotNull(Container.Resolve()); - } - - class Test2 - { - public Test2( - [Inject(Id = Things.Thing1)] - Foo foo) - { - } - } - - [Test] - public void TestEnumIdentifiers1() - { - Container.Bind().AsTransient(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestEnumIdentifiers2() - { - Container.Bind().WithId(Things.Thing2).AsTransient(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.Resolve()); - } - - [Test] - public void TestEnumIdentifiers3() - { - Container.Bind().WithId(Things.Thing1).AsTransient(); - Container.Bind().AsTransient(); - - Assert.IsNotNull(Container.Resolve()); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs.meta deleted file mode 100644 index 9d8ed9c3c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifierTypes.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 9bc24db5ed5a5d047af12bf9c81319bb -timeCreated: 1537241991 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs deleted file mode 100644 index c3d21e21b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs +++ /dev/null @@ -1,69 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Conditions -{ - [TestFixture] - public class TestIdentifiers : ZenjectUnitTestFixture - { - class Test0 - { - } - - [Test] - public void TestBasic() - { - Container.Bind().WithId("foo").AsTransient().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Container.ResolveId("foo"); - } - - [Test] - public void TestBasic2() - { - Container.Bind().WithId("foo").AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Container.ResolveId("foo"); - } - - [Test] - public void TestBasic3() - { - Container.Bind().WithId("foo").FromMethod(ctx => new Test0()).NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Container.ResolveId("foo"); - } - - [Test] - public void TestBasic4() - { - Container.Bind().WithId("foo").AsTransient().NonLazy(); - Container.Bind().WithId("foo").AsTransient().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Assert.Throws( - delegate { Container.ResolveId("foo"); }); - - Assert.IsEqual(Container.ResolveIdAll("foo").Count, 2); - } - - [Test] - public void TestFromMethodUntyped() - { - Container.Bind(typeof(Test0)).FromMethod(ctx => new Test0()).NonLazy(); - - Container.Resolve(); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs.meta deleted file mode 100644 index 218aa4c3c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestIdentifiers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 644729bec6228dd46a175eab4d04637a -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions.meta deleted file mode 100644 index cef2e413b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: a06a3cca4f04a6245a9def6d9505c530 -folderAsset: yes -timeCreated: 1462372161 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs deleted file mode 100644 index b2db2ae59..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs +++ /dev/null @@ -1,40 +0,0 @@ -#if !(UNITY_WSA && ENABLE_DOTNET) - -using System; - -namespace Zenject.Tests.Convention -{ - public class ConventionTestAttribute : Attribute - { - public ConventionTestAttribute(int num) - { - Num = num; - } - - public int Num - { - get; - private set; - } - } - - public interface IFoo - { - } - - public class Foo1 : IFoo - { - } - - [ConventionTest(0)] - public class Foo2 : IFoo - { - } - - [ConventionTest(1)] - public class Foo3 : IFoo - { - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs.meta deleted file mode 100644 index 93d7fb655..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/Foo.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: df03d112f1cade745b9c6eb4344fc519 -timeCreated: 1462127518 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs deleted file mode 100644 index 73430f117..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs +++ /dev/null @@ -1,14 +0,0 @@ -#if !(UNITY_WSA && ENABLE_DOTNET) - -namespace Zenject.Tests.Convention.NamespaceTest -{ - public class Bar - { - } - - public class Foo4 : IFoo - { - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs.meta deleted file mode 100644 index 32cfd0c99..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/FooMore.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d233b33d1863c004293dc5c5dbec63c9 -timeCreated: 1462127515 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs deleted file mode 100644 index b694c4c13..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs +++ /dev/null @@ -1,81 +0,0 @@ -#if !(UNITY_WSA && ENABLE_DOTNET) - -using System.Linq; -using ModestTree; -using NUnit.Framework; -using UnityEngine; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Convention -{ - [TestFixture] - public class TestConvention : ZenjectUnitTestFixture - { - [Test] - public void TestDerivingFrom() - { - Container.Bind() - .To(x => x.AllTypes().DerivingFrom().FromThisAssembly()).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 4); - } - - [Test] - public void TestDerivingFrom2() - { - Container.Bind() - .To(x => x.AllTypes().DerivingFrom()).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 4); - } - - [Test] - public void TestMatchAll() - { - // Should automatically filter by contract types - Container.Bind().To(x => x.AllNonAbstractClasses()).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 4); - } - -#if !NOT_UNITY3D - [Test] - public void TestDerivingFromFail() - { - Container.Bind() - .To(x => x.AllTypes().DerivingFrom().FromAssemblyContaining()).AsTransient(); - - Assert.That(Container.ResolveAll().IsEmpty()); - } -#endif - - [Test] - public void TestAttributeFilter() - { - Container.Bind() - .To(x => x.AllTypes().WithAttribute()).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 2); - } - - [Test] - public void TestAttributeWhereFilter() - { - Container.Bind() - .To(x => x.AllTypes().WithAttributeWhere(a => a.Num == 1)).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 1); - } - - [Test] - public void TestInNamespace() - { - Container.Bind() - .To(x => x.AllTypes().DerivingFrom().InNamespace("Zenject.Tests.Convention.NamespaceTest")).AsTransient(); - - Assert.IsEqual(Container.ResolveAll().Count(), 1); - } - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs.meta deleted file mode 100644 index e24e9ef6a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 69363ffe277b0e84ea97667444992554 -timeCreated: 1462127494 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs deleted file mode 100644 index 89782971f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs +++ /dev/null @@ -1,53 +0,0 @@ -#if !(UNITY_WSA && ENABLE_DOTNET) - -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Convention.Two -{ - [TestFixture] - public class TestConvention2 - { - [Test] - public void TestBindAllInterfacesSimple() - { - var container = new DiContainer(); - - container.Bind(x => x.AllInterfaces()).To().AsTransient(); - - Assert.That(container.Resolve() is Foo); - Assert.That(container.Resolve() is Foo); - } - - [Test] - public void TestBindAllInterfaces2() - { - var container = new DiContainer(); - - container.Bind(x => x.AllInterfaces()) - .To(x => x.AllNonAbstractClasses().InNamespace("Zenject.Tests.Convention.Two")).AsTransient(); - - Assert.IsEqual(container.ResolveAll().Count, 2); - Assert.IsEqual(container.ResolveAll().Count, 2); - } - - public interface IFoo - { - } - - public interface IBar - { - } - - public class Foo : IFoo, IBar - { - } - - public class Bar : IBar, IFoo - { - } - } -} - -#endif - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs.meta deleted file mode 100644 index 90fb23423..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConvention2.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 37e019ec982c85046baf80bc37b38d11 -timeCreated: 1464576582 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs deleted file mode 100644 index 623924321..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#if !(UNITY_WSA && ENABLE_DOTNET) - -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Convention.Names -{ - [TestFixture] - public class TestConventionNames : ZenjectUnitTestFixture - { - [Test] - public void TestWithSuffix() - { - Container.Bind() - .To(x => x.AllNonAbstractClasses().InNamespace("Zenject.Tests.Convention.Names").WithSuffix("Controller")).AsTransient(); - - Assert.That(Container.Resolve() is FooController); - } - - [Test] - public void TestWithPrefix() - { - Container.Bind() - .To(x => x.AllTypes().InNamespace("Zenject.Tests.Convention.Names").WithPrefix("Controller")).AsTransient(); - - Assert.That(Container.Resolve() is ControllerBar); - } - - [Test] - public void TestMatchingRegex() - { - Container.Bind() - .To(x => x.AllNonAbstractClasses().InNamespace("Zenject.Tests.Convention.Names").MatchingRegex("Controller$")).AsTransient(); - - Assert.That(Container.Resolve() is FooController); - } - - interface IController - { - } - - class FooController : IController - { - } - - class ControllerBar : IController - { - } - - class QuxControllerAsdf : IController - { - } - - class IgnoredFooController - { - } - - class ControllerBarIgnored - { - } - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs.meta deleted file mode 100644 index ab8c1c499..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Conventions/TestConventionNames.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a8a9ff36735244a47babe85319e21e38 -timeCreated: 1464576609 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories.meta deleted file mode 100644 index eefae40cd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: dc0d4125f5cf5cd45b5d13defb47da01 -folderAsset: yes -timeCreated: 1461711436 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings.meta deleted file mode 100644 index bf3cbf2a8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 5e3c408f00aae61468d936ac29f004d1 -folderAsset: yes -timeCreated: 1461708047 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs deleted file mode 100644 index 3b5af1f20..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs +++ /dev/null @@ -1,84 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFrom0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf1() - { - Container.BindFactory().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - } - - [Test] - public void TestSelf2() - { - Container.BindFactory().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - } - - [Test] - public void TestSelf3() - { - Container.BindFactory().FromNew().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - } - - [Test] - public void TestFactoryScopeDefault() - { - Container.BindFactory(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestFactoryScopeTransient() - { - Container.BindFactory().AsTransient(); - - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().To().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - - Assert.That(Container.Resolve().Create() is Foo); - } - - [Test] - public void TestConcreteUntyped() - { - Container.BindFactory().To(typeof(Foo)).NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - - Assert.That(Container.Resolve().Create() is Foo); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs.meta deleted file mode 100644 index cce699553..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: cd589059f4c2ff341a25698a4a1673d9 -timeCreated: 1485738788 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs deleted file mode 100644 index 918f4acdd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs +++ /dev/null @@ -1,55 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFrom1 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().To().NonLazy(); - - var ifoo = Container.Resolve().Create("asdf"); - - Assert.IsNotNull(ifoo); - Assert.IsEqual(((Foo)ifoo).Value, "asdf"); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs.meta deleted file mode 100644 index 2e9e45f08..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 2aeb922683e72ac4f9fd3806715e65df -timeCreated: 1485738782 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs deleted file mode 100644 index 4e04c410a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs +++ /dev/null @@ -1,64 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFrom5 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf1() - { - Container.BindFactory().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf", 2, "a", 4.2f, 6).P1, "asdf"); - } - - [Test] - public void TestSelf2() - { - Container.BindFactory().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf", 2, "a", 4.2f, 6).P1, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().To().NonLazy(); - - var ifoo = Container.Resolve().Create("asdf", 2, "a", 4.2f, 6); - - Assert.IsNotNull(ifoo); - Assert.IsEqual(((Foo)ifoo).P1, "asdf"); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string p1, int p2, string p3, float p4, int p5) - { - P1 = p1; - } - - public string P1 - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs.meta deleted file mode 100644 index 0527d8a58..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFrom5.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: db247dfbb1d6d284cae35a8f3ae55f17 -timeCreated: 1485738788 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs deleted file mode 100644 index c439a8bc1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs +++ /dev/null @@ -1,75 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromFactory0 : ZenjectUnitTestFixture - { - static Foo StaticFoo = new Foo(); - - [Test] - public void TestSelf() - { - Container.BindFactory().FromIFactory(b => b.To().AsCached()).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), StaticFoo); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory() - .To().FromIFactory(b => b.To().AsCached()).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), StaticFoo); - } - - [Test] - public void TestFactoryValidation() - { - Container.BindFactory() - .To().FromIFactory(b => b.To().AsCached()).NonLazy(); - - Container.Resolve().Create(); - } - - class CustomFooFactoryWithValidate : IFactory, IValidatable - { - public Foo Create() - { - return StaticFoo; - } - - public void Validate() - { - throw Assert.CreateException("Test error"); - } - } - - class CustomFooFactory : IFactory - { - public Foo Create() - { - return StaticFoo; - } - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs.meta deleted file mode 100644 index 2b2e8047a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1ccf6a6010280bd4c80cd60ddfc3251c -timeCreated: 1485738782 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs deleted file mode 100644 index e2f936bbb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs +++ /dev/null @@ -1,64 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromFactory1 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory().FromIFactory(b => b.To().AsCached()).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().To().FromIFactory(b => b.To().AsCached()).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - class CustomFooFactory : IFactory - { - public Foo Create(string value) - { - return new Foo(value); - } - } - - interface IFoo - { - string Value - { - get; - } - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs.meta deleted file mode 100644 index f7b5b7469..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromFactory1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ba619dabc8cdb2a4b853e8d7d88b9a23 -timeCreated: 1485738787 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs deleted file mode 100644 index e1dba8e7c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs +++ /dev/null @@ -1,41 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromGetter0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.Bind().AsSingle().NonLazy(); - Container.BindFactory().FromResolveGetter(x => x.Bar).NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - Assert.IsEqual(Container.Resolve().Create(), Container.Resolve().Bar); - } - - class Bar - { - public class Factory : PlaceholderFactory - { - } - } - - class Foo - { - public Foo() - { - Bar = new Bar(); - } - - public Bar Bar - { - get; - private set; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs.meta deleted file mode 100644 index 04039dd53..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromGetter0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 02801e9ad7fdcd54990732b0e9ec2d0f -timeCreated: 1485738780 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs deleted file mode 100644 index d3f8b9ba4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs +++ /dev/null @@ -1,45 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromInstance0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - var foo = new Foo(); - - Container.BindFactory().FromInstance(foo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void TestConcrete() - { - var foo = new Foo(); - - Container.BindFactory().FromInstance(foo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs.meta deleted file mode 100644 index bbbfa0a68..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromInstance0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a07aa9c58bcc5094f8e29f0d10303fb8 -timeCreated: 1485738786 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs deleted file mode 100644 index dafa13f6d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs +++ /dev/null @@ -1,45 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromMethod0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - var foo = new Foo(); - - Container.BindFactory().FromMethod(c => foo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void TestConcrete() - { - var foo = new Foo(); - - Container.BindFactory().FromMethod(c => foo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs.meta deleted file mode 100644 index 3a777712f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8cac25659efcbbb47ab2876811408f52 -timeCreated: 1485738785 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs deleted file mode 100644 index 3be1370ad..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs +++ /dev/null @@ -1,58 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromMethod1 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory().FromMethod((c, value) => new Foo(value)).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().FromMethod((c, value) => new Foo(value)).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - interface IFoo - { - string Value - { - get; - } - - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs.meta deleted file mode 100644 index 15bebaac5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromMethod1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 75b2bb6fc90254044b1eae12b63cafb3 -timeCreated: 1485738784 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs deleted file mode 100644 index 4060c3015..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs +++ /dev/null @@ -1,72 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromResolve0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - var foo = new Foo(); - - Container.BindInstance(foo).NonLazy(); - - Container.BindFactory().FromResolve().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void TestConcrete() - { - var foo = new Foo(); - - Container.BindInstance(foo).NonLazy(); - - Container.BindFactory().To().FromResolve().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void TestSelfIdentifier() - { - var foo = new Foo(); - - Container.BindInstance(foo).WithId("foo").NonLazy(); - - Container.BindFactory().FromResolve("foo").NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void TestConcreteIdentifier() - { - var foo = new Foo(); - - Container.BindInstance(foo).WithId("foo").NonLazy(); - - Container.BindFactory().To().FromResolve("foo").NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs.meta deleted file mode 100644 index 2ffcaaf68..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bde11a0eb028e1a4d9f8cd47b9752dad -timeCreated: 1485738787 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs deleted file mode 100644 index dc7ffeb99..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs +++ /dev/null @@ -1,55 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromSubContainerInstaller0 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory() - .FromSubContainerResolve().ByInstaller().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), FooInstaller.Foo); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory() - .To().FromSubContainerResolve().ByInstaller().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), FooInstaller.Foo); - } - - class FooInstaller : Installer - { - public static Foo Foo = new Foo(); - - public override void InstallBindings() - { - Container.Bind().FromInstance(Foo); - } - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs.meta deleted file mode 100644 index f4b7e1df6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a75a7d0a0d0a978459537926595a8f75 -timeCreated: 1485738786 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs deleted file mode 100644 index 55dce2620..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs +++ /dev/null @@ -1,75 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromSubContainerInstaller1 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory() - .FromSubContainerResolve().ByInstaller().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory() - .To().FromSubContainerResolve().ByInstaller().NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - class FooInstaller : Installer - { - readonly string _value; - - public FooInstaller(string value) - { - _value = value; - } - - public override void InstallBindings() - { - Container.Bind().AsTransient().WithArgumentsExplicit( - InjectUtil.CreateArgListExplicit(_value)); - } - } - - interface IFoo - { - string Value - { - get; - } - - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs.meta deleted file mode 100644 index d4edefc09..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerInstaller1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 0f5f5adb036584147968b4cf0e1b75a6 -timeCreated: 1485738781 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs deleted file mode 100644 index bf51af2f6..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs +++ /dev/null @@ -1,50 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromSubContainerMethod0 : ZenjectUnitTestFixture - { - static Foo ConstFoo = new Foo(); - - [Test] - public void TestSelf() - { - Container.BindFactory().FromSubContainerResolve().ByMethod(InstallFoo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), ConstFoo); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory() - .To().FromSubContainerResolve().ByMethod(InstallFoo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create(), ConstFoo); - } - - void InstallFoo(DiContainer subContainer) - { - subContainer.Bind().FromInstance(ConstFoo); - } - - interface IFoo - { - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs.meta deleted file mode 100644 index 0942f41bb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod0.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 99958e9b2f0eefc429b100aafef684ae -timeCreated: 1485738785 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs deleted file mode 100644 index 3b655988f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs +++ /dev/null @@ -1,66 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryFromSubContainerMethod1 : ZenjectUnitTestFixture - { - [Test] - public void TestSelf() - { - Container.BindFactory() - .FromSubContainerResolve().ByMethod(InstallFoo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - [Test] - public void TestConcrete() - { - Container.BindFactory().To().FromSubContainerResolve().ByMethod(InstallFoo).NonLazy(); - - Assert.IsEqual(Container.Resolve().Create("asdf").Value, "asdf"); - } - - void InstallFoo(DiContainer subContainer, string value) - { - subContainer.Bind().AsSingle().WithArgumentsExplicit( - InjectUtil.CreateArgListExplicit(value)); - } - - interface IFoo - { - string Value - { - get; - } - - } - - class IFooFactory : PlaceholderFactory - { - } - - class Foo : IFoo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs.meta deleted file mode 100644 index f04f88e27..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromSubContainerMethod1.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 326764b6ac92ebd4daa3532846e523c9 -timeCreated: 1485738782 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs deleted file mode 100644 index c71d02e53..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs +++ /dev/null @@ -1,68 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFactoryWithArguments : ZenjectUnitTestFixture - { - [Test] - public void TestWithArguments1() - { - Container.BindFactory().WithArguments("asdf"); - - Assert.IsEqual(Container.Resolve().Create().Value, "asdf"); - } - - [Test] - public void TestWithFactoryArguments1() - { - Container.BindFactory().WithFactoryArguments("asdf"); - - Assert.IsEqual(Container.Resolve().Create().Value, "asdf"); - } - - public class Foo - { - public Foo(string value) - { - Value = value; - } - - public string Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - } - - public class Bar - { - public string Value - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - string _value; - - public Factory(string value) - { - _value = value; - } - - public override Bar Create() - { - var bar = base.Create(); - bar.Value = _value; - return bar; - } - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs.meta deleted file mode 100644 index 0ed76793a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryWithArguments.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 267196012b398f842894c8ad3a75aea6 -timeCreated: 1520770871 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory.meta deleted file mode 100644 index 49273ff02..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0da738c2fd2093f4db191a5593a83638 -folderAsset: yes -timeCreated: 1461873578 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs deleted file mode 100644 index ff44feb73..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs +++ /dev/null @@ -1,93 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestIFactory : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.BindIFactory(); - - var factory = Container.Resolve>(); - - Assert.IsNotNull(factory.Create()); - } - - [Test] - public void Test2Error() - { - Container.BindIFactory(); - - var factory = Container.Resolve>(); - - Assert.Throws(() => factory.Create()); - } - - [Test] - public void Test2() - { - Container.BindIFactory(); - - var factory = Container.Resolve>(); - - Assert.IsEqual(factory.Create("asdf").Value, "asdf"); - } - - [Test] - public void Test5() - { - Container.BindIFactory().To(); - - var factory = Container.Resolve>(); - - Assert.IsEqual(factory.Create("asdf", 0, 'z', 2, 3.0).P1, "asdf"); - } - - public class Foo - { - } - - public class FooTwo - { - public FooTwo(string value) - { - Value = value; - } - - public string Value - { - get; - private set; - } - } - - public interface IFooFive - { - string P1 - { - get; - } - } - - public class FooFive : IFooFive - { - string _p1; - public FooFive(string p1, int p2, char p3, long p4, double p5) - { - _p1 = p1; - } - - public string P1 - { - get - { - return _p1; - } - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs.meta deleted file mode 100644 index 148580a85..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/IFactory/TestIFactory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1663d737024bdf5438c672cef0d2d577 -timeCreated: 1461867513 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs deleted file mode 100644 index 2a29da1e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs +++ /dev/null @@ -1,30 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.AbstractFactory -{ - [TestFixture] - public class TestFactory : ZenjectUnitTestFixture - { - [Test] - public void TestToSelf() - { - Container.BindFactory().NonLazy(); - - Assert.IsNotNull(Container.Resolve().Create()); - } - - public interface IFoo - { - } - - public class Foo : IFoo - { - public class Factory : PlaceholderFactory - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs.meta deleted file mode 100644 index ecb093dcf..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/TestFactory.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 24764a4ebdf5bb044ad3cef3184d85b6 -timeCreated: 1461708049 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection.meta deleted file mode 100644 index 0d878020b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 502e37656c94f6b44b555b11dcf431c1 -folderAsset: yes -timeCreated: 1461711435 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs deleted file mode 100644 index f3ba80c83..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs +++ /dev/null @@ -1,321 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestAllInjectionTypes : ZenjectUnitTestFixture - { - static int InjectCounter; - - [Test] - // Test all variations of injection - public void TestCase1() - { - Container.Bind().FromInstance(new Test0()).NonLazy(); - Container.Bind().To().AsSingle().NonLazy(); - - InjectCounter = 1; - - var foo = Container.Resolve(); - - Assert.That(foo.DidPostInjectBase); - Assert.That(foo.DidPostInjectDerived); - - Assert.IsEqual(foo.BaseTypePropertyInjectCount, 1); - Assert.IsEqual(foo.DerivedTypePropertyInjectCount, 2); - - Assert.IsEqual(foo.BaseTypeMethodInjectCount, 3); - Assert.IsEqual(foo.DerivedTypeMethodInjectCount, 4); - } - - class Test0 - { - } - - interface IFoo - { - bool DidPostInjectBase - { - get; - } - - bool DidPostInjectDerived - { - get; - } - - int BaseTypePropertyInjectCount - { - get; - } - - int DerivedTypePropertyInjectCount - { - get; - } - - int BaseTypeMethodInjectCount - { - get; - } - - int DerivedTypeMethodInjectCount - { - get; - } - } - - abstract class FooBase : IFoo - { - bool _didPostInjectBase; - - [Inject] - public static Test0 BaseStaticFieldPublic = null; - - [Inject] - static Test0 BaseStaticFieldPrivate = null; - - [Inject] - protected static Test0 BaseStaticFieldProtected = null; - - [Inject] - public static Test0 BaseStaticPropertyPublic - { - get; - set; - } - - [Inject] - static Test0 BaseStaticPropertyPrivate - { - get; - set; - } - - [Inject] - protected static Test0 BaseStaticPropertyProtected - { - get; - set; - } - - // Instance - [Inject] - public Test0 BaseFieldPublic = null; - - [Inject] - Test0 BaseFieldPrivate = null; - - [Inject] - protected readonly Test0 BaseFieldProtected = null; - - Test0 _basePropertyPublicValue = null; - - [Inject] - public Test0 BasePropertyPublic - { - get { return _basePropertyPublicValue; } - set - { - BaseTypePropertyInjectCount = InjectCounter++; - _basePropertyPublicValue = value; - } - } - - [Inject] - Test0 BasePropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 BasePropertyProtected - { - get; - set; - } - - [Inject] - public void PostInjectBase() - { - Assert.IsNull(BaseStaticFieldPublic); - Assert.IsNull(BaseStaticFieldPrivate); - Assert.IsNull(BaseStaticFieldProtected); - Assert.IsNull(BaseStaticPropertyPublic); - Assert.IsNull(BaseStaticPropertyPrivate); - Assert.IsNull(BaseStaticPropertyProtected); - - Assert.IsNotNull(BaseFieldPublic); - Assert.IsNotNull(BaseFieldPrivate); - Assert.IsNotNull(BaseFieldProtected); - Assert.IsNotNull(BasePropertyPublic); - Assert.IsNotNull(BasePropertyPrivate); - Assert.IsNotNull(BasePropertyProtected); - - BaseTypeMethodInjectCount = InjectCounter++; - - _didPostInjectBase = true; - } - - public bool DidPostInjectBase - { - get - { - return _didPostInjectBase; - } - } - - public abstract bool DidPostInjectDerived - { - get; - } - - public int BaseTypePropertyInjectCount - { - get; set; - } - - public int BaseTypeMethodInjectCount - { - get; set; - } - - public abstract int DerivedTypeMethodInjectCount - { - get; - } - - public abstract int DerivedTypePropertyInjectCount - { - get; - } - } - - class FooDerived : FooBase - { - public bool _didPostInject; - public Test0 ConstructorParam; - - public override bool DidPostInjectDerived - { - get - { - return _didPostInject; - } - } - - [Inject] - public static Test0 DerivedStaticFieldPublic = null; - - [Inject] - static Test0 DerivedStaticFieldPrivate = null; - - [Inject] - protected static Test0 DerivedStaticFieldProtected = null; - - [Inject] - public static Test0 DerivedStaticPropertyPublic - { - get; - set; - } - - [Inject] - static Test0 DerivedStaticPropertyPrivate - { - get; - set; - } - - [Inject] - protected static Test0 DerivedStaticPropertyProtected - { - get; - set; - } - - // Instance - public FooDerived(Test0 param) - { - ConstructorParam = param; - } - - [Inject] - public void PostInject() - { - Assert.IsNull(DerivedStaticFieldPublic); - Assert.IsNull(DerivedStaticFieldPrivate); - Assert.IsNull(DerivedStaticFieldProtected); - Assert.IsNull(DerivedStaticPropertyPublic); - Assert.IsNull(DerivedStaticPropertyPrivate); - Assert.IsNull(DerivedStaticPropertyProtected); - - Assert.IsNotNull(DerivedFieldPublic); - Assert.IsNotNull(DerivedFieldPrivate); - Assert.IsNotNull(DerivedFieldProtected); - Assert.IsNotNull(DerivedPropertyPublic); - Assert.IsNotNull(DerivedPropertyPrivate); - Assert.IsNotNull(DerivedPropertyProtected); - Assert.IsNotNull(ConstructorParam); - - _derivedTypeMethodInjectCount = InjectCounter++; - - _didPostInject = true; - } - - [Inject] - public Test0 DerivedFieldPublic = null; - - [Inject] - Test0 DerivedFieldPrivate = null; - - [Inject] - protected Test0 DerivedFieldProtected = null; - - Test0 _derivedPropertyPublicValue; - - [Inject] - public Test0 DerivedPropertyPublic - { - get { return _derivedPropertyPublicValue; } - set - { - _derivedTypePropertyInjectCount = InjectCounter++; - _derivedPropertyPublicValue = value; - } - } - - [Inject] - Test0 DerivedPropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 DerivedPropertyProtected - { - get; - set; - } - - int _derivedTypeMethodInjectCount; - - public override int DerivedTypeMethodInjectCount - { - get { return _derivedTypeMethodInjectCount; } - } - - int _derivedTypePropertyInjectCount; - - public override int DerivedTypePropertyInjectCount - { - get { return _derivedTypePropertyInjectCount; } - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs.meta deleted file mode 100644 index f09bafc38..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestAllInjectionTypes.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9fe16f0cbfec7754e85378cb23b97b89 -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs deleted file mode 100644 index 915100d04..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs +++ /dev/null @@ -1,44 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestBaseClassPropertyInjection : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test3 - { - } - - class Test1 : Test3 - { - [Inject] protected Test0 val = null; - - public Test0 GetVal() - { - return val; - } - } - - class Test2 : Test1 - { - } - - [Test] - public void TestCaseBaseClassPropertyInjection() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - var test1 = Container.Resolve(); - - Assert.That(test1.GetVal() != null); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs.meta deleted file mode 100644 index 7e96ad269..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestBaseClassPropertyInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 444583e94b8faf74c823354f8352eb23 -timeCreated: 1461708050 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs deleted file mode 100644 index adeed1185..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs +++ /dev/null @@ -1,155 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestCircularDependencies : ZenjectUnitTestFixture - { - class Test1 - { - public static int CreateCount; - - [Inject] - public Test2 Other = null; - - public Test1() - { - CreateCount++; - } - } - - class Test2 - { - public static int CreateCount; - - [Inject] - public Test1 Other = null; - - public Test2() - { - CreateCount++; - } - } - - [Test] - public void TestFields() - { - Test2.CreateCount = 0; - Test1.CreateCount = 0; - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - var test1 = Container.Resolve(); - var test2 = Container.Resolve(); - - Assert.IsEqual(Test2.CreateCount, 1); - Assert.IsEqual(Test1.CreateCount, 1); - Assert.IsEqual(test1.Other, test2); - Assert.IsEqual(test2.Other, test1); - } - - class Test3 - { - public static int CreateCount; - - public Test4 Other; - - public Test3() - { - CreateCount++; - } - - [Inject] - public void Initialize(Test4 other) - { - Other = other; - } - } - - class Test4 - { - public static int CreateCount; - - public Test3 Other; - - public Test4() - { - CreateCount++; - } - - [Inject] - public void Initialize(Test3 other) - { - Other = other; - } - } - - [Test] - public void TestPostInject() - { - Test4.CreateCount = 0; - Test3.CreateCount = 0; - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - var test1 = Container.Resolve(); - var test2 = Container.Resolve(); - - Assert.IsEqual(Test4.CreateCount, 1); - Assert.IsEqual(Test3.CreateCount, 1); - Assert.IsEqual(test1.Other, test2); - Assert.IsEqual(test2.Other, test1); - } - - class Test5 - { - public Test5(Test6 Other) - { - Assert.IsNotNull(Other); - } - } - - class Test6 - { - public Test6(Test5 other) - { - Assert.IsNotNull(other); - } - } - - [Test] - public void TestConstructorInject() - { - if (Container.ChecksForCircularDependencies) - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.Resolve()); - Assert.Throws(() => Container.Resolve()); - } - } - - class Test7 - { - public Test7(Test7 other) - { - } - } - - [Test] - public void TestSelfDependency() - { - if (Container.ChecksForCircularDependencies) - { - Container.Bind().AsSingle(); - Assert.Throws(() => Container.Instantiate()); - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs.meta deleted file mode 100644 index 09e4bf7eb..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestCircularDependencies.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d00c81151702f6b4fa1d0400acf83a51 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs deleted file mode 100644 index 1bc435414..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs +++ /dev/null @@ -1,99 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestConstructorInjection : ZenjectUnitTestFixture - { - [Test] - public void TestResolve() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestInstantiate() - { - Container.Bind().AsSingle(); - Assert.IsNotNull(Container.Instantiate(new object[] { new Bar() })); - } - - [Test] - public void TestMultipleWithOneTagged() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.IsNotNull(Container.Resolve()); - } - - [Test] - public void TestMultipleChooseLeastArguments() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - var gorp = Container.Resolve(); - - Assert.IsEqual(gorp.ChosenConstructor, 1); - } - - class Bar - { - } - - class Foo - { - public Foo(Bar bar) - { - Bar = bar; - } - - public Bar Bar - { - get; private set; - } - } - - class Qux - { - public Qux() - { - } - - [Inject] - public Qux(Bar val) - { - } - } - - class Gorp - { - public Gorp() - { - ChosenConstructor = 1; - } - - public Gorp(Bar val) - { - ChosenConstructor = 2; - } - - public Gorp(string p1, int p2) - { - ChosenConstructor = 3; - } - - public int ChosenConstructor - { - get; private set; - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs.meta deleted file mode 100644 index 571771c29..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6c6aad7bc2fa9c0428a8cc8b7670445d -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs deleted file mode 100644 index f86a1548e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs +++ /dev/null @@ -1,63 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestConstructorInjectionOptional : ZenjectUnitTestFixture - { - class Test1 - { - } - - class Test2 - { - public Test1 val; - - public Test2(Test1 val = null) - { - this.val = val; - } - } - - class Test3 - { - public Test1 val; - - public Test3(Test1 val) - { - this.val = val; - } - } - - [Test] - public void TestCase1() - { - Container.Bind().AsSingle().NonLazy(); - - var test1 = Container.Resolve(); - - Assert.That(test1.val == null); - } - - [Test] - public void TestCase2() - { - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.Instantiate()); - } - - [Test] - public void TestConstructByFactory() - { - Container.Bind().AsSingle(); - - var test1 = Container.Instantiate(); - - Assert.That(test1.val == null); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs.meta deleted file mode 100644 index df8da0ec7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestConstructorInjectionOptional.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: ccdd61e6305aade43b64f0c488a7f126 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs deleted file mode 100644 index 030ebf196..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs +++ /dev/null @@ -1,34 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestDuplicateInjection : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - public Test1(Test0 test1) - { - } - } - - [Test] - public void TestCaseDuplicateInjection() - { - Container.Bind().AsCached(); - Container.Bind().AsCached(); - - Container.Bind().AsSingle(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs.meta deleted file mode 100644 index 31f69b6ac..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestDuplicateInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 68ac954686ff2e04699f2ceefd89a402 -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs deleted file mode 100644 index 531302d14..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs +++ /dev/null @@ -1,149 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestInjectSources - { - class Test0 - { - } - - class Test1 - { - public Test0 val; - - public Test1( - [InjectLocal] - Test0 val) - { - this.val = val; - } - } - - class Test2 - { - public Test0 val; - - public Test2( - [Inject(Source = InjectSources.Parent)] - Test0 val) - { - this.val = val; - } - } - - class Test3 - { - public Test0 val; - - public Test3( - [Inject(Source = InjectSources.AnyParent)] - Test0 val) - { - this.val = val; - } - } - - class Test4 - { - public Test0 val; - - public Test4( - [Inject(Source = InjectSources.Any)] - Test0 val) - { - this.val = val; - } - } - - [Test] - public void TestAny() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - - rootContainer.Bind().AsSingle(); - sub1.Bind().AsSingle(); - - Assert.IsNotNull(sub1.Resolve()); - } - - [Test] - public void TestLocal1() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - - rootContainer.Bind().AsSingle(); - sub1.Bind().AsSingle(); - - Assert.Throws(() => sub1.Resolve()); - } - - [Test] - public void TestLocal2() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - - sub1.Bind().AsSingle(); - sub1.Bind().AsSingle(); - - Assert.IsNotNull(sub1.Resolve()); - } - - [Test] - public void TestParent1() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - - rootContainer.Bind().AsSingle(); - sub1.Bind().AsSingle(); - - Assert.IsNotNull(sub1.Resolve()); - } - - [Test] - public void TestParent2() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - var sub2 = sub1.CreateSubContainer(); - - rootContainer.Bind().AsSingle(); - sub2.Bind().AsSingle(); - - Assert.Throws(() => sub2.Resolve()); - } - - [Test] - public void TestParent3() - { - var rootContainer = new DiContainer(); - - rootContainer.Bind().AsSingle(); - rootContainer.Bind().AsSingle(); - - Assert.Throws(() => rootContainer.Resolve()); - } - - [Test] - public void TestParentAny1() - { - var rootContainer = new DiContainer(); - var sub1 = rootContainer.CreateSubContainer(); - var sub2 = sub1.CreateSubContainer(); - - rootContainer.Bind().AsSingle(); - sub2.Bind().AsSingle(); - - Assert.IsNotNull(sub2.Resolve()); - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs.meta deleted file mode 100644 index 77a984ded..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestInjectSources.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: a991a1d50d39d334b846e0ad5cd511e7 -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs deleted file mode 100644 index 906d29871..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestListInjection : ZenjectUnitTestFixture - { - [Test] - public void TestConstructor1() - { - BindListItems(); - Container.Bind().AsSingle(); - TestListItems(Container.Resolve().Values); - } - - [Test] - public void TestField1() - { - BindListItems(); - Container.Bind().AsSingle(); - TestListItems(Container.Resolve().Values); - } - - [Test] - public void TestIList() - { - BindListItems(); - Container.Bind().AsSingle(); - TestListItems(Container.Resolve().Values.ToList()); - } - - [Test] - public void TestIEnumerable() - { - BindListItems(); - Container.Bind().AsSingle(); - TestListItems(Container.Resolve().Values.ToList()); - } - - [Test] - public void TestArrays() - { - BindListItems(); - Container.Bind().AsSingle(); - TestListItems(Container.Resolve().Values.ToList()); - } - - void BindListItems() - { - Container.BindInstance("foo"); - Container.BindInstance("bar"); - } - - void TestListItems(List values) - { - Assert.IsEqual(values[0], "foo"); - Assert.IsEqual(values[1], "bar"); - } - - class Test1 - { - public Test1(List values) - { - Values = values; - } - - public List Values - { - get; private set; - } - } - - class Test3 - { - [Inject] - public List Values = null; - } - - class Test2 - { - public Test2(IList values) - { - Values = values; - } - - public IList Values - { - get; private set; - } - } - - class Test4 - { - public Test4(IEnumerable values) - { - Values = values; - } - - public IEnumerable Values - { - get; private set; - } - } - - class Test5 - { - public Test5(string[] values) - { - Values = values; - } - - public string[] Values - { - get; private set; - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs.meta deleted file mode 100644 index 8e6e0fe6b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestListInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d5b86b3c904d43145a9afbd7f8a0cb13 -timeCreated: 1461708054 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs deleted file mode 100644 index b63cbbe41..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs +++ /dev/null @@ -1,48 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestNullableValues : ZenjectUnitTestFixture - { - class Test1 - { - public int? val; - - public Test1(int? val) - { - this.val = val; - } - } - - class Test2 - { - public int? val; - - public Test2( - [InjectOptional] - int? val) - { - this.val = val; - } - } - - [Test] - public void RunTest1() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromInstance(1).NonLazy(); - - Assert.IsEqual(Container.Resolve().val, 1); - } - - [Test] - public void RunTest2() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().val, null); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs.meta deleted file mode 100644 index 8e94c1cb0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestNullableValues.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9adcc99fb99e8954c84b0f32060eeead -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs deleted file mode 100644 index 2093dd9b0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs +++ /dev/null @@ -1,46 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestParameters : ZenjectUnitTestFixture - { - class Test1 - { - public int f1; - public int f2; - - public Test1(int f1, int f2) - { - this.f1 = f1; - this.f2 = f2; - } - } - - [Test] - public void TestExtraParametersSameType() - { - var test1 = Container.Instantiate(new object[] { 5, 10 }); - - Assert.That(test1 != null); - Assert.That(test1.f1 == 5 && test1.f2 == 10); - - var test2 = Container.Instantiate(new object[] { 10, 5 }); - - Assert.That(test2 != null); - Assert.That(test2.f1 == 10 && test2.f2 == 5); - } - - [Test] - public void TestMissingParameterThrows() - { - Container.Bind().AsTransient().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs.meta deleted file mode 100644 index 2cc405659..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestParameters.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: c571947a83e2460438d98aff825f6de2 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs deleted file mode 100644 index 76385eac1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs +++ /dev/null @@ -1,193 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestPostInjectCall : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - } - - class Test2 - { - } - - class Test3 - { - public bool HasInitialized; - public bool HasInitialized2; - - [Inject] - public Test1 test1 = null; - - [Inject] - public Test0 test0 = null; - - Test2 _test2; - - public Test3(Test2 test2) - { - _test2 = test2; - } - - [Inject] - public void Init() - { - Assert.That(!HasInitialized); - Assert.IsNotNull(test1); - Assert.IsNotNull(test0); - Assert.IsNotNull(_test2); - HasInitialized = true; - } - - [Inject] - void TestPrivatePostInject() - { - HasInitialized2 = true; - } - } - - [Test] - public void Test() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - var test3 = Container.Resolve(); - Assert.That(test3.HasInitialized); - Assert.That(test3.HasInitialized2); - } - - public class SimpleBase - { - public bool WasCalled; - - [Inject] - void Init() - { - WasCalled = true; - } - } - - public class SimpleDerived : SimpleBase - { - } - - [Test] - public void TestPrivateBaseClassPostInject() - { - Container.Bind().To().AsSingle().NonLazy(); - - var simple = Container.Resolve(); - - Assert.That(simple.WasCalled); - } - - [Test] - public void TestInheritance() - { - Container.Bind().To().AsSingle().NonLazy(); - - var foo = Container.Resolve(); - - Assert.That(((FooDerived)foo).WasDerivedCalled); - Assert.That(((FooBase)foo).WasBaseCalled); - Assert.That(((FooDerived)foo).WasDerivedCalled2); - Assert.That(((FooBase)foo).WasBaseCalled2); - } - - [Test] - public void TestInheritanceOrder() - { - Container.Bind().To().AsSingle().NonLazy(); - - // base post inject methods should be called first - _initOrder = 0; - FooBase.BaseCallOrder = 0; - FooDerived.DerivedCallOrder = 0; - FooDerived2.Derived2CallOrder = 0; - - Container.Resolve(); - - //Log.Info("FooBase.BaseCallOrder = {0}".Fmt(FooBase.BaseCallOrder)); - //Log.Info("FooDerived.DerivedCallOrder = {0}".Fmt(FooDerived.DerivedCallOrder)); - - Assert.IsEqual(FooBase.BaseCallOrder, 0); - Assert.IsEqual(FooDerived.DerivedCallOrder, 1); - Assert.IsEqual(FooDerived2.Derived2CallOrder, 2); - } - - static int _initOrder; - - interface IFoo - { - } - - class FooBase : IFoo - { - public bool WasBaseCalled; - public bool WasBaseCalled2; - public static int BaseCallOrder; - - [Inject] - void TestBase() - { - Assert.That(!WasBaseCalled); - WasBaseCalled = true; - BaseCallOrder = _initOrder++; - } - - [Inject] - public virtual void TestVirtual1() - { - Assert.That(!WasBaseCalled2); - WasBaseCalled2 = true; - } - } - - class FooDerived : FooBase - { - public bool WasDerivedCalled; - public bool WasDerivedCalled2; - public static int DerivedCallOrder; - - [Inject] - void TestDerived() - { - Assert.That(!WasDerivedCalled); - WasDerivedCalled = true; - DerivedCallOrder = _initOrder++; - } - - public override void TestVirtual1() - { - base.TestVirtual1(); - Assert.That(!WasDerivedCalled2); - WasDerivedCalled2 = true; - } - } - - class FooDerived2 : FooDerived - { - public bool WasDerived2Called; - public static int Derived2CallOrder; - - [Inject] - public void TestVirtual2() - { - Assert.That(!WasDerived2Called); - WasDerived2Called = true; - Derived2CallOrder = _initOrder++; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs.meta deleted file mode 100644 index 3fe30840e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectCall.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b471b20538748df4a8932877aa7bd2f9 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs deleted file mode 100644 index ecad6bee4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs +++ /dev/null @@ -1,59 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestPostInjectParameters : ZenjectUnitTestFixture - { - class Test0 - { - } - - class Test1 - { - } - - class Test2 - { - } - - class Test3 - { - public bool HasInitialized; - - public Test0 test0; - - [Inject] - public Test1 test1 = null; - - [Inject] - public void Init( - Test0 test0, - [InjectOptional] - Test2 test2) - { - Assert.That(!HasInitialized); - Assert.IsNotNull(test1); - Assert.IsNull(test2); - Assert.IsNull(this.test0); - this.test0 = test0; - HasInitialized = true; - } - } - - [Test] - public void Test() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Container.Bind().AsSingle().NonLazy(); - - var test3 = Container.Resolve(); - - Assert.That(test3.HasInitialized); - Assert.IsNotNull(test3.test0); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs.meta deleted file mode 100644 index e2a3e776d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPostInjectParameters.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: b2d41ccbf61026c45872ce060cd81b70 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs deleted file mode 100644 index c09985df0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs +++ /dev/null @@ -1,48 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestPropertyInjection : ZenjectUnitTestFixture - { - class Test1 - { - } - - class Test2 - { - [Inject] - public Test1 val2 { get; private set; } - - [Inject] - Test1 val4 { get; set; } - - public Test1 GetVal4() - { - return val4; - } - } - - [Test] - public void TestPublicPrivate() - { - var test1 = new Test1(); - - Container.Bind().AsSingle().NonLazy(); - Container.Bind().FromInstance(test1).NonLazy(); - - var test2 = Container.Resolve(); - - Assert.IsEqual(test2.val2, test1); - Assert.IsEqual(test2.GetVal4(), test1); - } - - [Test] - public void TestCase2() - { - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs.meta deleted file mode 100644 index 1b66ffe4e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestPropertyInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e73445afb1e143e4d83dccc220517a72 -timeCreated: 1461708054 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs deleted file mode 100644 index 1e8b428e5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs +++ /dev/null @@ -1,89 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestStructInjection : ZenjectUnitTestFixture - { - struct Test1 - { - } - - class Test2 - { - public Test2(Test1 t1) - { - } - } - - [Test] - public void TestInjectStructIntoClass() - { - Container.Bind().FromInstance(new Test1()).NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Container.ResolveRoots(); - - var t2 = Container.Resolve(); - - Assert.That(t2 != null); - } - - struct Test3 - { - [Inject] -#pragma warning disable 649 - public int ValueField; -#pragma warning restore 649 - - [Inject] - public string ValueProperty - { - get; private set; - } - - public float ValueConstructor - { - get; private set; - } - } - - [Test] - public void TestInjectFieldsOfStruct() - { - Container.BindInstance("asdf"); - Container.BindInstance(5); - Container.Bind().AsSingle(); - - var test3 = Container.Instantiate(); - - Assert.IsEqual(test3.ValueProperty, "asdf"); - Assert.IsEqual(test3.ValueField, 5); - } - - struct Test4 - { - public Test4(string value) - { - Value = value; - } - - public string Value - { - get; private set; - } - } - - [Test] - public void TestInjectConstructorOfStruct() - { - Container.BindInstance("asdf"); - Container.Bind().AsSingle(); - - var test4 = Container.Instantiate(); - - Assert.IsEqual(test4.Value, "asdf"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs.meta deleted file mode 100644 index 208301d3c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestStructInjection.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 99836272f6c39824ebe35524b96e67cd -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs deleted file mode 100644 index 935ee9325..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs +++ /dev/null @@ -1,217 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Injection -{ - [TestFixture] - public class TestTestOptional : ZenjectUnitTestFixture - { - class Test1 - { - } - - class Test2 - { - [Inject] - public Test1 val1 = null; - } - - class Test3 - { - [InjectOptional] - public Test1 val1 = null; - } - - class Test0 - { - [InjectOptional] - public int Val1 = 5; - } - - [Test] - public void TestFieldRequired() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestFieldOptional() - { - Container.Bind().AsSingle().NonLazy(); - - var test = Container.Resolve(); - Assert.That(test.val1 == null); - } - - [Test] - public void TestFieldOptional2() - { - Container.Bind().AsSingle().NonLazy(); - - var test1 = new Test1(); - Container.Bind().FromInstance(test1).NonLazy(); - - Assert.IsEqual(Container.Resolve().val1, test1); - } - - [Test] - public void TestFieldOptional3() - { - Container.Bind().AsTransient().NonLazy(); - - // Should not redefine the hard coded value in this case - Assert.IsEqual(Container.Resolve().Val1, 5); - - Container.Bind().FromInstance(3).NonLazy(); - - Assert.IsEqual(Container.Resolve().Val1, 3); - } - - class Test4 - { - public Test4(Test1 val1) - { - } - } - - class Test5 - { - public Test1 Val1; - - public Test5( - [InjectOptional] - Test1 val1) - { - Val1 = val1; - } - } - - [Test] - public void TestParameterRequired() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - [Test] - public void TestParameterOptional() - { - Container.Bind().AsSingle().NonLazy(); - - var test = Container.Resolve(); - Assert.That(test.Val1 == null); - } - - class Test6 - { - public Test6(Test2 test2) - { - } - } - - [Test] - public void TestChildDependencyOptional() - { - Container.Bind().AsSingle().NonLazy(); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - class Test7 - { - public int Val1; - - public Test7( - [InjectOptional] - int val1) - { - Val1 = val1; - } - } - - [Test] - public void TestPrimitiveParamOptionalUsesDefault() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Val1, 0); - } - - class Test8 - { - public int Val1; - - public Test8( - [InjectOptional] - int val1 = 5) - { - Val1 = val1; - } - } - - [Test] - public void TestPrimitiveParamOptionalUsesExplicitDefault() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Val1, 5); - } - - class Test8_2 - { - public int Val1; - - public Test8_2(int val1 = 5) - { - Val1 = val1; - } - } - - [Test] - public void TestPrimitiveParamOptionalUsesExplicitDefault2() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.IsEqual(Container.Resolve().Val1, 5); - } - - [Test] - public void TestPrimitiveParamOptionalUsesExplicitDefault3() - { - Container.Bind().AsSingle().NonLazy(); - Container.BindInstance(2); - - Assert.IsEqual(Container.Resolve().Val1, 2); - } - - class Test9 - { - public int? Val1; - - public Test9( - [InjectOptional] - int? val1) - { - Val1 = val1; - } - } - - [Test] - public void TestPrimitiveParamOptionalNullable() - { - Container.Bind().AsSingle().NonLazy(); - - Assert.That(!Container.Resolve().Val1.HasValue); - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs.meta deleted file mode 100644 index 9336350c8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Injection/TestTestOptional.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 731e8a7c5222176449a38890b363d0b5 -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool.meta deleted file mode 100644 index 515ce73a2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 576d1bd2a13ed8343b8a9556d3567893 -folderAsset: yes -timeCreated: 1519956462 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs deleted file mode 100644 index 1876bf51c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs +++ /dev/null @@ -1,70 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestArrayPool : ZenjectUnitTestFixture - { - [Test] - public void RunTest() - { - var pool = ArrayPool.GetPool(2); - - pool.Clear(); - pool.ClearActiveCount(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 0); - - var arr1 = pool.Spawn(); - - Assert.IsEqual(arr1.Length, 2); - - arr1[0] = "asdf"; - arr1[1] = "zbx"; - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - pool.Despawn(arr1); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(pool.NumTotal, 1); - - var arr2 = pool.Spawn(); - - Assert.IsEqual(arr2.Length, 2); - Assert.IsNull(arr2[0]); - Assert.IsNull(arr2[1]); - - Assert.IsEqual(arr2.Length, 2); - Assert.IsEqual(arr2, arr1); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - var arr3 = pool.Spawn(); - - Assert.IsNotEqual(arr2, arr3); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 2); - - pool.Despawn(arr3); - pool.Despawn(arr2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 2); - Assert.IsEqual(pool.NumTotal, 2); - - Assert.Throws(() => pool.Despawn(arr3)); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs.meta deleted file mode 100644 index 1c44aebe5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestArrayPool.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 33e25c55b70120c42a55e90dee543e4a -timeCreated: 1537872724 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs deleted file mode 100644 index cf9bf9e5c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestDisposeBlock : ZenjectUnitTestFixture - { - class Foo : IDisposable - { - public static readonly StaticMemoryPool Pool = - new StaticMemoryPool(OnSpawned, OnDespawned); - - public void Dispose() - { - Pool.Despawn(this); - } - - static void OnDespawned(Foo that) - { - that.Value = null; - } - - static void OnSpawned(string value, Foo that) - { - that.Value = value; - } - - public string Value - { - get; private set; - } - } - - public class Bar : IDisposable - { - readonly Pool _pool; - - public Bar(Pool pool) - { - _pool = pool; - } - - public void Dispose() - { - _pool.Despawn(this); - } - - public class Pool : MemoryPool - { - } - } - - public class Qux : IDisposable - { - public bool WasDisposed - { - get; private set; - } - - public void Dispose() - { - WasDisposed = true; - } - } - - [Test] - public void TestExceptions() - { - var qux1 = new Qux(); - var qux2 = new Qux(); - - try - { - using (var block = DisposeBlock.Spawn()) - { - block.Add(qux1); - block.Add(qux2); - throw new Exception(); - } - } - catch - { - } - - Assert.That(qux1.WasDisposed); - Assert.That(qux2.WasDisposed); - } - - [Test] - public void TestWithStaticMemoryPool() - { - var pool = Foo.Pool; - - pool.Clear(); - - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - - using (var block = DisposeBlock.Spawn()) - { - block.Spawn(pool, "asdf"); - - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - } - - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - } - - [Test] - public void TestWithNormalMemoryPool() - { - Container.BindMemoryPool(); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - - using (var block = DisposeBlock.Spawn()) - { - block.Spawn(pool); - - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - } - - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs.meta deleted file mode 100644 index f15c186c5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestDisposeBlock.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: fd6b9542508dba54ba29e1316963417a -timeCreated: 1527949568 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs deleted file mode 100644 index 96b6649e7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromPoolableMemoryPoolOne : ZenjectUnitTestFixture - { - public class Foo : IPoolable, IDisposable - { - IMemoryPool _pool; - string _data; - string _initialData; - - public Foo(string initialData) - { - _initialData = initialData; - SetDefaults(); - } - - public string InitialData - { - get { return _initialData; } - } - - public IMemoryPool Pool - { - get { return _pool; } - } - - public string Data - { - get { return _data; } - } - - void SetDefaults() - { - _pool = null; - _data = null; - } - - public void Dispose() - { - _pool.Despawn(this); - } - - public void OnDespawned() - { - _data = null; - _pool = null; - SetDefaults(); - } - - public void OnSpawned(string data, IMemoryPool pool) - { - _pool = pool; - _data = data; - } - - public class Factory : PlaceholderFactory - { - } - } - - [Test] - public void Test1() - { - Container.BindFactory().FromPoolableMemoryPool(x => x.WithInitialSize(2).WithArguments("blurg")); - - var factory = Container.Resolve(); - - var foo = factory.Create("asdf"); - - Assert.IsEqual(foo.InitialData, "blurg"); - - var pool = foo.Pool; - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - Assert.IsEqual(foo.Data, "asdf"); - - foo.Dispose(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - Assert.IsEqual(foo.Data, null); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs.meta deleted file mode 100644 index 2ce7a79dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolOne.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 0290781678baa694491808cbbb4365b0 -timeCreated: 1528529859 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs deleted file mode 100644 index b4ed1ad2a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromPoolableMemoryPoolSix : ZenjectUnitTestFixture - { - public class Foo : IPoolable, IDisposable - { - IMemoryPool _pool; - string _data; - - public Foo() - { - SetDefaults(); - } - - public IMemoryPool Pool - { - get { return _pool; } - } - - public string Data - { - get { return _data; } - } - - void SetDefaults() - { - _pool = null; - _data = null; - } - - public void Dispose() - { - _pool.Despawn(this); - } - - public void OnDespawned() - { - _data = null; - _pool = null; - SetDefaults(); - } - - public void OnSpawned(string p1, int p2, float p3, char p4, double p5, long p6, IMemoryPool pool) - { - _pool = pool; - _data = p1; - } - - public class Factory : PlaceholderFactory - { - } - } - - [Test] - public void Test1() - { - Container.BindFactory().FromPoolableMemoryPool(x => x.WithInitialSize(2)); - - var factory = Container.Resolve(); - - var foo = factory.Create("asdf", 1, 1.0f, 'u', 1.0, 1L); - var pool = foo.Pool; - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - Assert.IsEqual(foo.Data, "asdf"); - - foo.Dispose(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - Assert.IsEqual(foo.Data, null); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs.meta deleted file mode 100644 index e45394f87..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolSix.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 098b4e9c9d112bc42866f5cff81842c0 -timeCreated: 1528529859 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs deleted file mode 100644 index c3e20cb33..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs +++ /dev/null @@ -1,81 +0,0 @@ - -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromPoolableMemoryPoolValidation - { - public class Bar - { - } - - public class Foo : IPoolable, IDisposable - { - IMemoryPool _pool; - - public Foo(Bar bar) - { - } - - public IMemoryPool Pool - { - get { return _pool; } - } - - void SetDefaults() - { - _pool = null; - } - - public void Dispose() - { - _pool.Despawn(this); - } - - public void OnDespawned() - { - _pool = null; - SetDefaults(); - } - - public void OnSpawned(IMemoryPool pool) - { - _pool = pool; - } - - public class Factory : PlaceholderFactory - { - } - } - - [Test] - public void TestFailure() - { - var container = new DiContainer(true); - container.Settings = new ZenjectSettings( - ValidationErrorResponses.Throw, RootResolveMethods.All); - - container.BindFactory().FromPoolableMemoryPool(x => x.WithInitialSize(2)); - - Assert.Throws(() => container.ResolveRoots()); - } - - - [Test] - public void TestSuccess() - { - var container = new DiContainer(true); - container.Settings = new ZenjectSettings( - ValidationErrorResponses.Throw, RootResolveMethods.All); - - container.Bind().AsSingle(); - container.BindFactory().FromPoolableMemoryPool(x => x.WithInitialSize(2)); - - container.ResolveRoots(); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs.meta deleted file mode 100644 index 0b96a1bfa..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolValidation.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 327a53cf63cd4c04dbf831a038257783 -timeCreated: 1528530804 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs deleted file mode 100644 index f2dfafc97..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs +++ /dev/null @@ -1,67 +0,0 @@ - -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestFromPoolableMemoryPoolZero : ZenjectUnitTestFixture - { - public class Foo : IPoolable, IDisposable - { - IMemoryPool _pool; - - public IMemoryPool Pool - { - get { return _pool; } - } - - void SetDefaults() - { - _pool = null; - } - - public void Dispose() - { - _pool.Despawn(this); - } - - public void OnDespawned() - { - _pool = null; - SetDefaults(); - } - - public void OnSpawned(IMemoryPool pool) - { - _pool = pool; - } - - public class Factory : PlaceholderFactory - { - } - } - - [Test] - public void Test1() - { - Container.BindFactory().FromPoolableMemoryPool(x => x.WithInitialSize(2).FromNew()); - - var factory = Container.Resolve(); - - var foo = factory.Create(); - var pool = foo.Pool; - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - foo.Dispose(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs.meta deleted file mode 100644 index 6eed81555..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestFromPoolableMemoryPoolZero.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: ac0356e6e75c5604fbc522ae6ee4c252 -timeCreated: 1528529860 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs deleted file mode 100644 index b57a1e77b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs +++ /dev/null @@ -1,384 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -#pragma warning disable 219 - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestMemoryPool0 : ZenjectUnitTestFixture - { - [Test] - public void TestFactoryProperties() - { - Container.BindMemoryPool(); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - var foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo.ResetCount, 1); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(foo.ResetCount, 1); - - foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo.ResetCount, 2); - - var foo2 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(foo2.ResetCount, 1); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(foo.ResetCount, 2); - - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - } - - [Test] - public void TestFactoryScopeDefault() - { - Container.BindMemoryPool(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestFactoryScopeTransient() - { - Container.BindMemoryPool().AsTransient(); - - Assert.IsNotEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestFactoryPropertiesDefault() - { - Container.BindMemoryPool(); - - var pool = Container.Resolve>(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - var foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 1); - - foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - - var foo2 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - - pool.Despawn(foo); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - } - - [Test] - public void TestExpandDouble() - { - Container.BindMemoryPool().ExpandByDoubling(); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - var foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(pool.NumInactive, 0); - - var foo2 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - - var foo3 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 4); - Assert.IsEqual(pool.NumInactive, 1); - - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 4); - Assert.IsEqual(pool.NumInactive, 2); - - var foo4 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 4); - Assert.IsEqual(pool.NumInactive, 1); - } - - [Test] - public void TestFixedSize() - { - Container.BindMemoryPool().WithFixedSize(2); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - - var foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - var foo2 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - - Assert.Throws(() => pool.Spawn()); - } - - [Test] - public void TestInitialSize() - { - Container.BindMemoryPool().WithInitialSize(5); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 5); - } - - [Test] - public void TestExpandAndShrinkManually() - { - Container.BindMemoryPool(); - - var pool = Container.Resolve(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - pool.ExpandBy(2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - - var foo = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 1); - - pool.ExpandBy(3); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 4); - - var foo2 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 3); - - var foo3 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 2); - - pool.ExpandBy(1); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 6); - Assert.IsEqual(pool.NumInactive, 3); - - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 6); - Assert.IsEqual(pool.NumInactive, 4); - - var foo4 = pool.Spawn(); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 6); - Assert.IsEqual(pool.NumInactive, 3); - - pool.ShrinkBy(1); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 2); - - pool.Resize(6); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 9); - Assert.IsEqual(pool.NumInactive, 6); - - pool.Clear(); - - Assert.IsEqual(pool.NumActive, 3); - Assert.IsEqual(pool.NumTotal, 3); - Assert.IsEqual(pool.NumInactive, 0); - - Assert.Throws(() => pool.Resize(-1)); - Assert.Throws(() => pool.ShrinkBy(1)); - } - - [Test] - public void TestMaxSize() - { - Container.BindMemoryPool().WithInitialSize(2).WithMaxSize(4); - - var pool = Container.Resolve(); - - var foos = new List(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - - foos.Add(pool.Spawn()); - foos.Add(pool.Spawn()); - foos.Add(pool.Spawn()); - foos.Add(pool.Spawn()); - foos.Add(pool.Spawn()); - - Assert.IsEqual(pool.NumActive, 5); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 0); - - pool.Despawn(foos[0]); - pool.Despawn(foos[1]); - pool.Despawn(foos[2]); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 3); - - pool.Despawn(foos[3]); - pool.Despawn(foos[4]); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 4); - Assert.IsEqual(pool.NumInactive, 4); - } - - class Bar - { - public class Pool : MemoryPool - { - } - } - - class Foo - { - public int ResetCount - { - get; private set; - } - - public class Pool : MemoryPool - { - protected override void OnSpawned(Foo foo) - { - foo.ResetCount++; - } - } - } - - [Test] - public void TestSubContainers() - { - Container.BindMemoryPool() - .FromSubContainerResolve().ByMethod(InstallQux).NonLazy(); - - var pool = Container.Resolve(); - var qux = pool.Spawn(); - } - - void InstallQux(DiContainer subContainer) - { - subContainer.Bind().AsSingle(); - } - - class Qux - { - public class Pool : MemoryPool - { - } - } - - [Test] - [ValidateOnly] - public void TestIds() - { - Container.BindMemoryPool().WithId("foo").WithInitialSize(5); - - var pool = Container.ResolveId("foo"); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs.meta deleted file mode 100644 index 7cecabaac..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPool0.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 325335e855a4c594480804dc3d0e8caa -timeCreated: 1519832826 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs deleted file mode 100644 index c27c7190b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs +++ /dev/null @@ -1,52 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -#pragma warning disable 219 - -namespace Zenject.Tests.Bindings -{ - [TestFixture] - public class TestMemoryPoolCustomFactory : ZenjectUnitTestFixture - { - [Test] - public void TestFromBinding() - { - Container.BindMemoryPool().FromIFactory(b => b.To().AsCached()); - - var pool = Container.Resolve(); - - var qux = pool.Spawn(); - - Assert.IsEqual(pool.NumTotal, 1); - } - - [Test] - public void TestFromRuntime() - { - var settings = new MemoryPoolSettings(0, int.MaxValue, PoolExpandMethods.OneAtATime); - - var pool = Container.Instantiate(new object[] { settings, new CustomFactory() }); - - var qux = pool.Spawn(); - - Assert.IsEqual(pool.NumTotal, 1); - } - - class CustomFactory : IFactory - { - public Qux Create() - { - return new Qux(); - } - } - - class Qux - { - public class Pool : MemoryPool - { - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs.meta deleted file mode 100644 index 57c846f84..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestMemoryPoolCustomFactory.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 8379f1a96bdcecb4e9cd40975f9c898d -timeCreated: 1519832826 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs deleted file mode 100644 index 7f37a51fe..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestPoolableStaticMemoryPool : ZenjectUnitTestFixture - { - [Test] - public void RunTest() - { - var pool = Foo.Pool; - - pool.Clear(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 0); - - var foo = pool.Spawn("asdf"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(foo.Data, "asdf"); - - foo.Dispose(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(pool.NumTotal, 1); - Assert.IsEqual(foo.Data, null); - } - - public class Foo : IPoolable, IDisposable - { - public static readonly PoolableStaticMemoryPool Pool = - new PoolableStaticMemoryPool(); - - public string Data - { - get; private set; - } - - public void Dispose() - { - Pool.Despawn(this); - } - - public void OnSpawned(string data) - { - Data = data; - } - - public void OnDespawned() - { - Data = null; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs.meta deleted file mode 100644 index 13dbdd409..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestPoolableStaticMemoryPool.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: f7ee5ff810de60d4ba6ac2e06aeb70ea -timeCreated: 1528618262 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs deleted file mode 100644 index 5c8277104..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs +++ /dev/null @@ -1,254 +0,0 @@ -using System; -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestStaticMemoryPool : ZenjectUnitTestFixture - { - [SetUp] - public void CommonInstall() - { - Container.Inject(this); - } - - [Test] - public void RunTest() - { - var pool = Foo.Pool; - - pool.Clear(); - pool.ClearActiveCount(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 0); - - var foo = pool.Spawn("asdf"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - Assert.IsEqual(foo.Value, "asdf"); - pool.Despawn(foo); - Assert.IsNull(foo.Value); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(pool.NumTotal, 1); - - var foo2 = pool.Spawn("zxcv"); - Assert.That(ReferenceEquals(foo, foo2)); - Assert.IsEqual(foo2.Value, "zxcv"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - var foo3 = pool.Spawn("bar"); - Assert.That(!ReferenceEquals(foo2, foo3)); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 2); - - pool.Despawn(foo3); - pool.Despawn(foo2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 2); - Assert.IsEqual(pool.NumTotal, 2); - - Assert.Throws(() => pool.Despawn(foo3)); - } - - [Test] - public void TestListPool() - { - var pool = ListPool.Instance; - - pool.Clear(); - pool.ClearActiveCount(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 0); - - var list = pool.Spawn(); - - list.Add("asdf"); - list.Add("zbx"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - pool.Despawn(list); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(pool.NumTotal, 1); - - var list2 = pool.Spawn(); - - Assert.IsEqual(list2.Count, 0); - Assert.IsEqual(list2, list); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - - var list3 = pool.Spawn(); - - Assert.IsNotEqual(list2, list3); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 2); - - pool.Despawn(list3); - pool.Despawn(list2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 2); - Assert.IsEqual(pool.NumTotal, 2); - - Assert.Throws(() => pool.Despawn(list3)); - } - - [Test] - public void TestPoolWrapper() - { - var pool = Foo.Pool; - - pool.Clear(); - pool.ClearActiveCount(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 0); - - using (var block = DisposeBlock.Spawn()) - { - block.Spawn(pool, "asdf"); - - Assert.IsEqual(pool.NumActive, 1); - Assert.IsEqual(pool.NumInactive, 0); - Assert.IsEqual(pool.NumTotal, 1); - } - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumInactive, 1); - Assert.IsEqual(pool.NumTotal, 1); - } - - [Test] - public void TestResize() - { - var pool = Bar.Pool; - - pool.Clear(); - pool.ClearActiveCount(); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 0); - Assert.IsEqual(pool.NumInactive, 0); - - pool.Resize(2); - - Assert.IsEqual(pool.NumActive, 0); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 2); - - var bars = new List(); - - bars.Add(pool.Spawn()); - bars.Add(pool.Spawn()); - bars.Add(pool.Spawn()); - bars.Add(pool.Spawn()); - bars.Add(pool.Spawn()); - - Assert.IsEqual(pool.NumActive, 5); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 0); - - pool.Despawn(bars[0]); - pool.Despawn(bars[1]); - pool.Despawn(bars[2]); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 3); - - pool.ShrinkBy(1); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 4); - Assert.IsEqual(pool.NumInactive, 2); - - pool.ExpandBy(1); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 5); - Assert.IsEqual(pool.NumInactive, 3); - - pool.Resize(1); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 3); - Assert.IsEqual(pool.NumInactive, 1); - - pool.Clear(); - - Assert.IsEqual(pool.NumActive, 2); - Assert.IsEqual(pool.NumTotal, 2); - Assert.IsEqual(pool.NumInactive, 0); - - Assert.Throws(() => pool.Resize(-1)); - Assert.Throws(() => pool.ShrinkBy(1)); - } - - public class Bar - { - public static readonly StaticMemoryPool Pool = - new StaticMemoryPool(OnSpawned, OnDespawned); - - static void OnSpawned(Bar that) - { - } - - static void OnDespawned(Bar that) - { - } - } - - public class Foo : IDisposable - { - public static readonly StaticMemoryPool Pool = - new StaticMemoryPool(OnSpawned, OnDespawned); - - public string Value - { - get; private set; - } - - public void Dispose() - { - Pool.Despawn(this); - } - - static void OnSpawned(string value, Foo that) - { - that.Value = value; - } - - static void OnDespawned(Foo that) - { - that.Value = null; - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs.meta deleted file mode 100644 index c060fc5ce..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/MemoryPool/TestStaticMemoryPool.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 554fc06f7ed876d479aa605f55099e02 -timeCreated: 1528024394 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other.meta deleted file mode 100644 index cc99dcec0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: bc7f3f51b1ad79f409addb115d2857a7 -folderAsset: yes -timeCreated: 1461711436 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs deleted file mode 100644 index e3c548d96..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs +++ /dev/null @@ -1,62 +0,0 @@ - -// In order to run this, install dotMemoryPeek through nuget and then change this to 1 -#if false - -using System; -using System.Diagnostics; -using JetBrains.dotMemoryUnit; -using ModestTree; -using NUnit.Framework; -using Assert=ModestTree.Assert; -using System.Linq; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestAllocs : ZenjectUnitTestFixture - { - interface IFoo - { - } - - public class Foo1 : IFoo - { - } - - public class Foo2 : IFoo - { - } - - [Test] - [DotMemoryUnit(CollectAllocations=true)] - public void TryStuff() - { - Container.Bind().To().AsSingle(); - - Container.TryResolve(); - - Log.Info("Starting memory check"); - - var point1 = dotMemory.Check(); - - Container.TryResolve(); - - dotMemory.Check(memory => - { - var traffic = memory.GetTrafficFrom(point1).Where(x => x.Namespace.Like("Zenject")); - var bytesAllocated = traffic.AllocatedMemory.SizeInBytes; - - if (bytesAllocated != 0) - { - Log.Info("Found unnecessary memory allocations ({0} kb) in Container.Resolve. Allocated Types: \n{1}", - (float)bytesAllocated / 1024f, traffic.GroupByType().OrderByDescending(x => x.AllocatedMemoryInfo.SizeInBytes) - .Select(x => "{0} bytes: ({1})".Fmt(x.AllocatedMemoryInfo.SizeInBytes, x.Type.PrettyName())).Join("\n")); - } - }); - - Log.Info("Done memory check"); - } - } -} - -#endif diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs.meta deleted file mode 100644 index f49fc3a68..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAllocs.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6935919ae38269447a54f963952ce929 -timeCreated: 1519817043 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs deleted file mode 100644 index af5ae8e04..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs +++ /dev/null @@ -1,158 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings.Singletons -{ - [TestFixture] - public class TestAsSingle : ZenjectUnitTestFixture - { - [Test] - public void TestAsSingleThrows() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestAsSingleAndTransientThrows() - { - Container.Bind().AsSingle(); - Container.Bind().AsTransient(); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestAsSingleAndResolveNoThrow() - { - Container.Bind().AsSingle(); - Container.Bind().To().FromResolve(); - - Assert.IsEqual(Container.Resolve(), Container.Resolve()); - } - - [Test] - public void TestToSingleMethod1() - { - Container.Bind().AsSingle(); - - Assert.Throws(() => - { - Container.Bind().FromMethod(container => new Foo()).AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromInstance(new Foo()).AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle(); - Container.FlushBindings(); - }); - } - - [Test] - public void TestToSingleMethod() - { - Container.Bind().FromMethod(container => new Foo()).AsSingle(); - - Assert.Throws(() => - { - Container.Bind().AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromInstance(new Foo()).AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle(); - Container.FlushBindings(); - }); - } - - [Test] - public void TestToSingleInstance() - { - Container.Bind().FromInstance(new Foo()).AsSingle(); - - Assert.Throws(() => - { - Container.Bind().AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromMethod(container => new Foo()).AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle(); - Container.FlushBindings(); - }); - } - - [Test] - public void TestToSingleFactory() - { - Container.Bind().FromIFactory(b => b.To().AsCached()).AsSingle(); - - Assert.Throws(() => - { - Container.Bind().AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromMethod(container => new Foo()).AsSingle(); - Container.FlushBindings(); - }); - - Assert.Throws(() => - { - Container.Bind().FromInstance(new Foo()).AsSingle(); - Container.FlushBindings(); - }); - } - - class Bar - { - public Foo GetFoo() - { - return new Foo(); - } - } - - interface IFoo - { - } - - class Foo : IFoo - { - } - - class FooFactory : IFactory - { - public Foo Create() - { - return new Foo(); - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs.meta deleted file mode 100644 index 1cbc28b1a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestAsSingle.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6b3c12a3bc805fb47b7dd01a4c8f100f -timeCreated: 1520670682 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs deleted file mode 100644 index 4fb985542..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs +++ /dev/null @@ -1,79 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestBindCallbacks : ZenjectUnitTestFixture - { - public class Foo - { - [Inject] - public int Value2 - { - get; set; - } - - public string Value - { - get; set; - } - - public class Factory : PlaceholderFactory - { - } - - public class Pool : MemoryPool - { - } - } - - [Test] - public void Test1() - { - Container.BindInstance(5).WhenInjectedInto(); - - Container.Bind().AsSingle().OnInstantiated((ctx, f) => - { - Assert.IsEqual(f.Value2, 5); - f.Value = "asdf"; - }); - - var foo = Container.Resolve(); - - Assert.IsEqual(foo.Value, "asdf"); - } - - [Test] - public void TestFactory1() - { - Container.BindInstance(5).WhenInjectedInto(); - - Container.BindFactory().OnInstantiated((ctx, f) => - { - Assert.IsEqual(f.Value2, 5); - f.Value = "asdf"; - }); - - var foo = Container.Resolve().Create(); - - Assert.IsEqual(foo.Value, "asdf"); - } - - [Test] - public void TestMemoryPool1() - { - Container.BindInstance(5).WhenInjectedInto(); - - Container.BindMemoryPool().OnInstantiated((ctx, f) => - { - Assert.IsEqual(f.Value2, 5); - f.Value = "asdf"; - }); - - var foo = Container.Resolve().Spawn(); - - Assert.IsEqual(foo.Value, "asdf"); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs.meta deleted file mode 100644 index 1c162a3dd..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestBindCallbacks.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1a3977987fbe0944c8f7d3879818e79c -timeCreated: 1535263051 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs deleted file mode 100644 index fc0ad6f75..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs +++ /dev/null @@ -1,82 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestCircularDependencies : ZenjectUnitTestFixture - { - [Test] - public void TestThrows() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.Resolve()); - Assert.Throws(() => Container.Resolve()); - } - - public class Foo1 - { - public Foo1(Bar1 bar) - { - } - } - - public class Bar1 - { - public Bar1(Foo1 foo) - { - } - } - - [Test] - public void TestPostInject() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.IsNotNull(Container.Resolve()); - Assert.IsNotNull(Container.Resolve()); - } - - public class Foo2 - { - [Inject] - public void Init(Bar2 bar) - { - } - } - - public class Bar2 - { - [Inject] - public void Init(Foo2 foo) - { - } - } - - [Test] - public void TestField() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.IsNotNull(Container.Resolve().Bar); - Assert.IsNotNull(Container.Resolve().Foo); - } - - public class Foo3 - { - [Inject] - public Bar3 Bar; - } - - public class Bar3 - { - [Inject] - public Foo3 Foo; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs.meta deleted file mode 100644 index 18f1db1b4..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCircularDependencies.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 42f3a9d60487be74a953056c109c0f8f -timeCreated: 1461708050 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs deleted file mode 100644 index 7f9da050f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestClearCacheProvider : ZenjectUnitTestFixture - { - public interface IFoo - { - } - - public class Foo1 : IFoo - { - } - - public class Foo2 : IFoo - { - } - - // For issue https://github.com/modesttree/Zenject/issues/441 - [Test] - public void Test1() - { - Container.Bind().To().AsSingle(); - - Assert.That(Container.Resolve() is Foo1); - - var context = new InjectContext(Container, typeof(IFoo)); - - var provider = Container.AllProviders.OfType() - .Where(x => x.GetInstanceType(context) == typeof(Foo1)).Single(); - - Assert.IsEqual(provider.NumInstances, 1); - - provider.ClearCache(); - - Assert.IsEqual(provider.NumInstances, 0); - - Container.Rebind().To().AsSingle(); - - Assert.That(Container.Resolve() is Foo2); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs.meta deleted file mode 100644 index 6568fa36f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestClearCacheProvider.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 60fe740f61f8eb340988d68157f7ec18 -timeCreated: 1526286932 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs deleted file mode 100644 index 37903374f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs +++ /dev/null @@ -1,64 +0,0 @@ - -using System; -using NUnit.Framework; -using Zenject.Internal; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestCustomInjectAttribute : ZenjectUnitTestFixture - { - public class InjectCustomAttribute : Attribute - { - } - - class Bar - { - } - - [NoReflectionBaking] - class Foo - { - [InjectCustom] - public Bar BarField = null; - - public Foo(Bar barParam) - { - BarParam = barParam; - } - - public Bar BarParam; - public Bar BarMethod; - - [InjectCustom] - public Bar BarProperty - { - get; private set; - } - - [InjectCustom] - public void Construct(Bar bar) - { - BarMethod = bar; - } - } - - [Test] - public void Test1() - { - ReflectionTypeAnalyzer.AddCustomInjectAttribute(typeof(InjectCustomAttribute)); - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - var foo = Container.Resolve(); - var bar = Container.Resolve(); - - Assert.IsEqual(foo.BarProperty, bar); - Assert.IsEqual(foo.BarField, bar); - Assert.IsEqual(foo.BarMethod, bar); - Assert.IsEqual(foo.BarParam, bar); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs.meta deleted file mode 100644 index 765dcbb7e..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestCustomInjectAttribute.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 483591f22e80cb944b470afb280c1260 -timeCreated: 1535696025 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs deleted file mode 100644 index 9556cd0a0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestDecoratorValidation - { - public interface ISaveHandler - { - void Save(); - } - - public class SaveHandler : ISaveHandler - { - public void Save() - { - } - } - - public class SaveDecorator1 : ISaveHandler - { - readonly ISaveHandler _handler; - - public SaveDecorator1(ISaveHandler handler) - { - _handler = handler; - } - - public void Save() - { - _handler.Save(); - } - } - - DiContainer Container - { - get; set; - } - - [SetUp] - public void Setup() - { - Container = new DiContainer(true); - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - } - - public class Foo - { - public Foo(ISaveHandler saveHandler) - { - } - } - - [Test] - public void TestSuccess1() - { - Container.Bind().To().AsSingle(); - Container.Decorate().With(); - Container.Bind().AsSingle().NonLazy(); - - Container.ResolveRoots(); - } - - [Test] - public void TestFail1() - { - Container.Bind().To().AsSingle(); - Container.Decorate().With().FromResolve(Guid.NewGuid()); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestFail2() - { - Container.Bind().To().FromResolve(Guid.NewGuid()).AsSingle(); - Container.Decorate().With(); - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.ResolveRoots()); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs.meta deleted file mode 100644 index fdcad3f37..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecoratorValidation.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 4ea46e52a0fbff6478bff334331e6aaf -timeCreated: 1534318715 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs deleted file mode 100644 index 989468834..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs +++ /dev/null @@ -1,236 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestDecorators : ZenjectUnitTestFixture - { - static int CallCounter; - - public interface ISaveHandler - { - void Save(); - } - - public class SaveHandler : ISaveHandler - { - public SaveHandler() - { - NumInstances++; - } - - public static int CallCount - { - get; set; - } - - public static int NumInstances - { - get; set; - } - - public void Save() - { - CallCount = CallCounter++; - } - } - - public class SaveDecorator1 : ISaveHandler - { - readonly ISaveHandler _handler; - - public SaveDecorator1(ISaveHandler handler) - { - _handler = handler; - NumInstances++; - } - - public static int NumInstances - { - get; set; - } - - public static int CallCount - { - get; set; - } - - public void Save() - { - CallCount = CallCounter++; - _handler.Save(); - } - } - - public class SaveDecorator2 : ISaveHandler - { - readonly ISaveHandler _handler; - - public SaveDecorator2(ISaveHandler handler) - { - _handler = handler; - } - - public static int CallCount - { - get; set; - } - - public void Save() - { - CallCount = CallCounter++; - _handler.Save(); - } - } - - public class Foo - { - } - - [Test] - public void TestSimpleCase() - { - Container.Bind().To().AsSingle(); - Container.Decorate().With(); - - CallCounter = 1; - SaveHandler.CallCount = 0; - SaveDecorator1.CallCount = 0; - - Container.Resolve().Save(); - - Assert.IsEqual(SaveDecorator1.CallCount, 1); - Assert.IsEqual(SaveHandler.CallCount, 2); - } - - [Test] - public void TestMultiple() - { - Container.Bind().To().AsSingle(); - - Container.Decorate().With(); - Container.Decorate().With(); - - CallCounter = 1; - SaveHandler.CallCount = 0; - SaveDecorator1.CallCount = 0; - SaveDecorator2.CallCount = 0; - - Container.Resolve().Save(); - - Assert.IsEqual(SaveDecorator2.CallCount, 1); - Assert.IsEqual(SaveDecorator1.CallCount, 2); - Assert.IsEqual(SaveHandler.CallCount, 3); - } - - [Test] - public void TestCaching() - { - Container.Bind().To().AsTransient(); - Container.Decorate().With(); - - SaveHandler.NumInstances = 0; - SaveDecorator1.NumInstances = 0; - - Container.Resolve().Save(); - - Assert.IsEqual(SaveHandler.NumInstances, 1); - Assert.IsEqual(SaveDecorator1.NumInstances, 1); - - Container.Resolve().Save(); - - Assert.IsEqual(SaveHandler.NumInstances, 2); - Assert.IsEqual(SaveDecorator1.NumInstances, 2); - } - - [Test] - public void TestCaching2() - { - Container.Bind().To().AsCached(); - Container.Decorate().With(); - - SaveHandler.NumInstances = 0; - SaveDecorator1.NumInstances = 0; - - Container.Resolve().Save(); - - Assert.IsEqual(SaveHandler.NumInstances, 1); - Assert.IsEqual(SaveDecorator1.NumInstances, 1); - - Container.Resolve().Save(); - - Assert.IsEqual(SaveHandler.NumInstances, 1); - Assert.IsEqual(SaveDecorator1.NumInstances, 1); - } - - [Test] - public void TestDecoratorMethod() - { - SaveHandler.NumInstances = 0; - SaveDecorator1.CallCount = 0; - - bool wasCalled = false; - - Container.Bind().To().AsSingle(); - Container.Decorate() - .With().FromMethod((x, h) => - { - wasCalled = true; - return new SaveDecorator1(h); - }); - - CallCounter = 1; - Assert.That(!wasCalled); - Assert.IsEqual(SaveHandler.NumInstances, 0); - Assert.IsEqual(SaveDecorator1.CallCount, 0); - - Container.Resolve().Save(); - - Assert.That(wasCalled); - Assert.IsEqual(SaveHandler.NumInstances, 1); - Assert.IsEqual(SaveDecorator1.CallCount, 1); - } - - [Test] - public void TestContainerInheritance() - { - Container.Bind().To().AsSingle(); - Container.Decorate().With(); - - var subContainer = Container.CreateSubContainer(); - - CallCounter = 1; - SaveHandler.CallCount = 0; - SaveDecorator1.CallCount = 0; - - subContainer.Resolve().Save(); - - Assert.IsEqual(SaveDecorator1.CallCount, 1); - Assert.IsEqual(SaveHandler.CallCount, 2); - } - - - // TODO - Fix this - //[Test] - //public void TestContainerInheritance2() - //{ - //Container.Bind().To().AsSingle(); - //Container.Decorate().With(); - - //var subContainer = Container.CreateSubContainer(); - //subContainer.Decorate().With(); - - //CallCounter = 1; - //SaveHandler.CallCount = 0; - //SaveDecorator1.CallCount = 0; - //SaveDecorator2.CallCount = 0; - - //subContainer.Resolve().Save(); - - //Assert.IsEqual(SaveDecorator2.CallCount, 1); - //Assert.IsEqual(SaveDecorator1.CallCount, 2); - //Assert.IsEqual(SaveHandler.CallCount, 3); - //} - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs.meta deleted file mode 100644 index 55f5db8e1..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestDecorators.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 919290ef5f80b8c48832d7a91f8ab674 -timeCreated: 1528372067 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs deleted file mode 100644 index ba3c1fe99..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestFacadeSubContainer - { - static int NumInstalls; - - [Test] - public void Test1() - { - NumInstalls = 0; - InitTest.WasRun = false; - TickTest.WasRun = false; - DisposeTest.WasRun = false; - - var container = new DiContainer(); - - container.Bind(typeof(TickableManager), typeof(InitializableManager), typeof(DisposableManager)) - .ToSelf().AsSingle().CopyIntoAllSubContainers(); - - // This is how you add ITickables / etc. within sub containers - container.BindInterfacesAndSelfTo() - .FromSubContainerResolve().ByMethod(InstallFoo).AsSingle(); - - var tickManager = container.Resolve(); - var initManager = container.Resolve(); - var disposeManager = container.Resolve(); - - Assert.That(!InitTest.WasRun); - Assert.That(!TickTest.WasRun); - Assert.That(!DisposeTest.WasRun); - - initManager.Initialize(); - tickManager.Update(); - disposeManager.Dispose(); - - Assert.That(InitTest.WasRun); - Assert.That(TickTest.WasRun); - Assert.That(DisposeTest.WasRun); - } - - public void InstallFoo(DiContainer subContainer) - { - NumInstalls++; - - subContainer.Bind().AsSingle(); - - subContainer.Bind().To().AsSingle(); - subContainer.Bind().To().AsSingle(); - subContainer.Bind().To().AsSingle(); - } - - public class FooKernel : Kernel - { - } - - public class InitTest : IInitializable - { - public static bool WasRun; - - public void Initialize() - { - WasRun = true; - } - } - - public class TickTest : ITickable - { - public static bool WasRun; - - public void Tick() - { - WasRun = true; - } - } - - public class DisposeTest : IDisposable - { - public static bool WasRun; - - public void Dispose() - { - WasRun = true; - } - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs.meta deleted file mode 100644 index 6550c6dc8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFacadeSubContainer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 84329a2f5907361459ac88fb29b3c102 -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs deleted file mode 100644 index 922ca15e7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs +++ /dev/null @@ -1,48 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestFactoryMemoryPoolCustomInterface : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - var foo = new Foo(); - - Container.BindFactoryCustomInterface().FromInstance(foo); - - Assert.IsEqual(Container.Resolve().Create(), foo); - } - - [Test] - public void Test2() - { - var foo = new Foo(); - - Container.BindMemoryPoolCustomInterface().FromInstance(foo); - - Assert.IsEqual(Container.Resolve().Spawn(), foo); - } - - public class Foo - { - public interface IFooFactory : IFactory - { - } - - public interface IFooPool : IMemoryPool - { - } - - public class Factory : PlaceholderFactory, IFooFactory - { - } - - public class Pool : MemoryPool, IFooPool - { - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs.meta deleted file mode 100644 index 211ece34b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestFactoryMemoryPoolCustomInterface.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 3cca63c83328cfd4693f06f559c762ec -timeCreated: 1520703276 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs deleted file mode 100644 index 572baed52..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestGenericContract : ZenjectUnitTestFixture - { - class Test1 - { - public T Data; - } - - class Test2 - { - } - - [Test] - public void TestToSingle() - { - Container.Bind(typeof(Test1<>)).AsSingle().NonLazy(); - - var test1 = Container.Resolve>(); - Assert.That(test1.Data == 0); - test1.Data = 5; - - var test2 = Container.Resolve>(); - - Assert.That(test2 == test1); - Assert.That(test1.Data == 5); - } - - [Test] - public void TestToTransient() - { - Container.Bind(typeof(Test1<>)).AsTransient().NonLazy(); - - var test1 = Container.Resolve>(); - Assert.That(test1.Data == 0); - - var test2 = Container.Resolve>(); - Assert.That(test2.Data == 0); - Assert.That(test2 != test1); - - Container.Resolve>(); - Container.Resolve>>(); - Container.Resolve>(); - } - - interface IFoo - { - } - - interface IBar - { - } - - class Test2 : IFoo, IBar - { - } - - [Test] - public void TestToSingleMultipleContracts() - { - Container.Bind(typeof(IFoo<>), typeof(IBar<>)).To(typeof(Test2<>)).AsSingle(); - - var foo = Container.Resolve>(); - Assert.That(foo is Test2); - - var bar = Container.Resolve>(); - Assert.That(bar is Test2); - - Assert.IsEqual(foo, bar); - Assert.IsEqual(foo, Container.Resolve>()); - Assert.IsEqual(bar, Container.Resolve>()); - } - - public interface IQux { - } - - public class Qux : IQux { - } - - [Test] - public void TestToSingleMultipleContractsMismatch() - { - Container.Bind(typeof(IQux), typeof(IFoo<>), typeof(IBar<>)).To(typeof(Test2<>), typeof(Qux)).AsSingle(); - - var foo = Container.Resolve>(); - Assert.That(foo is Test2); - - var bar = Container.Resolve>(); - Assert.That(bar is Test2); - - Assert.IsEqual(foo, bar); - Assert.IsEqual(foo, Container.Resolve>()); - Assert.IsEqual(bar, Container.Resolve>()); - - var qux = Container.Resolve(); - - Assert.IsEqual(qux, Container.Resolve()); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs.meta deleted file mode 100644 index 9108d94c2..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestGenericContract.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: af3b7f56a09aaa04c8eedd4f6c11945c -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs deleted file mode 100644 index a928c664f..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestKeyedFactoryExample : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Container.BindFactory().WithId("foo1") - .FromSubContainerResolve().ByMethod(InstallFoo1); - - Container.BindFactory().WithId("foo2") - .FromSubContainerResolve().ByMethod(InstallFoo2); - - Container.Bind>>() - .FromMethod(GetFooFactories).WhenInjectedInto(); - - Container.Bind().AsSingle(); - - var keyedFactory = Container.Resolve(); - - Assert.IsEqual(keyedFactory.Create("foo1").Number, 5); - Assert.IsEqual(keyedFactory.Create("foo2").Number, 6); - - Assert.Throws(() => keyedFactory.Create("foo3")); - } - - Dictionary> GetFooFactories(InjectContext ctx) - { - return ctx.Container.AllContracts.Where( - x => x.Type == typeof(Foo.Factory)) - .ToDictionary(x => (string)x.Identifier, x => (IFactory)ctx.Container.ResolveId(x.Identifier)); - } - - void InstallFoo2(DiContainer subContainer) - { - subContainer.BindInstance(6); - subContainer.Bind().AsCached(); - } - - void InstallFoo1(DiContainer subContainer) - { - subContainer.BindInstance(5); - subContainer.Bind().AsCached(); - } - - public class FooFactory - { - readonly Dictionary> _subFactories; - - public FooFactory( - Dictionary> subFactories) - { - _subFactories = subFactories; - } - - public Foo Create(string key) - { - return _subFactories[key].Create(); - } - } - - public class Foo - { - public Foo(int number) - { - Number = number; - } - - public int Number - { - get; private set; - } - - public class Factory : PlaceholderFactory - { - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs.meta deleted file mode 100644 index bbbd93995..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestKeyedFactoryExample.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: c2095fa27bc74d346a34ccfe39d21464 -timeCreated: 1520700395 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs deleted file mode 100644 index b7260d568..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs +++ /dev/null @@ -1,94 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Bindings.Singletons -{ - [TestFixture] - public class TestLazy : ZenjectUnitTestFixture - { - [Test] - public void Test1() - { - Bar.InstanceCount = 0; - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - var foo = Container.Resolve(); - - Assert.IsEqual(Bar.InstanceCount, 0); - - foo.DoIt(); - - Assert.IsEqual(Bar.InstanceCount, 1); - } - - [Test] - public void TestOptional1() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.IsNotNull(Container.Resolve().Bar.Value); - } - - [Test] - public void TestOptional2() - { - Container.Bind().AsSingle(); - - Assert.IsNull(Container.Resolve().Bar.Value); - } - - [Test] - public void TestOptional3() - { - Container.Bind().AsSingle(); - - var gorp = Container.Resolve(); - object temp; - Assert.Throws(() => temp = gorp.Bar.Value); - } - - public class Bar - { - public static int InstanceCount; - - public Bar() - { - InstanceCount++; - } - - public void DoIt() - { - } - } - - public class Foo - { - readonly LazyInject _bar; - - public Foo(LazyInject bar) - { - _bar = bar; - } - - public void DoIt() - { - _bar.Value.DoIt(); - } - } - - public class Qux - { - [Inject(Optional = true)] - public LazyInject Bar; - } - - public class Gorp - { - public LazyInject Bar; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs.meta deleted file mode 100644 index 2f38fa69a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestLazy.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: cd58ae826c869c849a16a72b99a4c984 -timeCreated: 1527488175 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs deleted file mode 100644 index 3e4708734..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs +++ /dev/null @@ -1,54 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestNestedContainer : ZenjectUnitTestFixture - { - public interface IFoo - { - int GetBar(); - } - - public class Foo : IFoo - { - public int GetBar() - { - return 0; - } - } - - public class Foo2 : IFoo - { - public int GetBar() - { - return 1; - } - } - - [Test] - public void TestCase1() - { - var container1 = new DiContainer(); - - Assert.Throws(() => container1.Resolve()); - Assert.Throws(() => Container.Resolve()); - - Container.Bind().To().AsSingle(); - - Assert.Throws(() => container1.Resolve()); - Assert.IsEqual(Container.Resolve().GetBar(), 0); - - var container2 = Container.CreateSubContainer(); - - Assert.IsEqual(container2.Resolve().GetBar(), 0); - Assert.IsEqual(Container.Resolve().GetBar(), 0); - - container2.Bind().To().AsSingle(); - - Assert.IsEqual(container2.Resolve().GetBar(), 1); - Assert.IsEqual(Container.Resolve().GetBar(), 0); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs.meta deleted file mode 100644 index 4949b98d5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestNestedContainer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9feaeae29aa84c64fb1741b2195e54ba -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs deleted file mode 100644 index 46a4b4513..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs +++ /dev/null @@ -1,106 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestPoolableManager : ZenjectUnitTestFixture - { - static int CallCount; - - public class Foo : IPoolable - { - public static int SpawnCallCount; - public static int DespawnCallCount; - - public void OnSpawned() - { - SpawnCallCount = CallCount++; - } - - public void OnDespawned() - { - DespawnCallCount = CallCount++; - } - } - - public class Bar : IPoolable - { - public static int SpawnCallCount; - public static int DespawnCallCount; - - public void OnSpawned() - { - SpawnCallCount = CallCount++; - } - - public void OnDespawned() - { - DespawnCallCount = CallCount++; - } - } - - [Test] - public void TestDefaultOrder() - { - Container.Bind().AsSingle(); - Container.Bind().To().AsSingle(); - Container.Bind().To().AsSingle(); - - var poolManager = Container.Resolve(); - - CallCount = 1; - Foo.SpawnCallCount = 0; - Foo.DespawnCallCount = 0; - Bar.SpawnCallCount = 0; - Bar.DespawnCallCount = 0; - - poolManager.TriggerOnSpawned(); - - Assert.IsEqual(Foo.SpawnCallCount, 1); - Assert.IsEqual(Bar.SpawnCallCount, 2); - Assert.IsEqual(Foo.DespawnCallCount, 0); - Assert.IsEqual(Bar.DespawnCallCount, 0); - - poolManager.TriggerOnDespawned(); - - Assert.IsEqual(Foo.SpawnCallCount, 1); - Assert.IsEqual(Bar.SpawnCallCount, 2); - Assert.IsEqual(Foo.DespawnCallCount, 4); - Assert.IsEqual(Bar.DespawnCallCount, 3); - } - - [Test] - public void TestExplicitOrder() - { - Container.Bind().AsSingle(); - Container.Bind().To().AsSingle(); - Container.Bind().To().AsSingle(); - - Container.BindExecutionOrder(2); - Container.BindExecutionOrder(1); - - var poolManager = Container.Resolve(); - - CallCount = 1; - Foo.SpawnCallCount = 0; - Foo.DespawnCallCount = 0; - Bar.SpawnCallCount = 0; - Bar.DespawnCallCount = 0; - - poolManager.TriggerOnSpawned(); - - Assert.IsEqual(Foo.SpawnCallCount, 2); - Assert.IsEqual(Bar.SpawnCallCount, 1); - Assert.IsEqual(Foo.DespawnCallCount, 0); - Assert.IsEqual(Bar.DespawnCallCount, 0); - - poolManager.TriggerOnDespawned(); - - Assert.IsEqual(Foo.SpawnCallCount, 2); - Assert.IsEqual(Bar.SpawnCallCount, 1); - Assert.IsEqual(Foo.DespawnCallCount, 3); - Assert.IsEqual(Bar.DespawnCallCount, 4); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs.meta deleted file mode 100644 index 82fc30f78..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestPoolableManager.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 25dab1c5f3ebf424da72c0f042790b11 -timeCreated: 1528651046 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs deleted file mode 100644 index 810483eb7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestResolve : ZenjectUnitTestFixture - { - class Foo - { - } - - [Test] - public void TestResolveAmbiguousBindings1() - { - var f1 = new Foo(); - var f2 = new Foo(); - - // Should always choose the binding with condition when forced to choose - Container.BindInstance(f1); - Container.BindInstance(f2).When(_ => true); - - Assert.IsEqual(Container.Resolve(), f2); - } - - - [Test] - public void TestResolveAmbiguousBindings2() - { - var f1 = new Foo(); - var f2 = new Foo(); - - // Order shouldn't matter - Container.BindInstance(f2).When(_ => true); - Container.BindInstance(f1); - - Assert.IsEqual(Container.Resolve(), f2); - } - - [Test] - public void TestDirectListBindings1() - { - var f1 = new Foo(); - - Container.BindInstance(f1); - - Assert.IsEqual(Container.Instantiate().Foos[0], f1); - - var l1 = new List(); - - Container.BindInstance(l1); - - // Direct list bindings should override the automatic list bindings - Assert.IsEqual(Container.Instantiate().Foos, l1); - } - - class Bar - { - public List Foos; - - public Bar(List foos) - { - Foos = foos; - } - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs.meta deleted file mode 100644 index e270eaaa5..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolve.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: ab22cbcf8e3080d41bd2031eb04612ee -timeCreated: 1522221939 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs deleted file mode 100644 index 6d4630964..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs +++ /dev/null @@ -1,42 +0,0 @@ -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().To().AsSingle(); - Container.Bind().To().AsSingle(); - - List many = Container.ResolveAll(); - - Assert.That(many.Count == 2); - } - - [Test] - public void TestOptional() - { - List many = Container.ResolveAll(); - Assert.That(many.Count == 0); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs.meta deleted file mode 100644 index 455c87605..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestResolveMany.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 8adbb260feb50b248943eb2fb41681cc -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs deleted file mode 100644 index 31da34936..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs +++ /dev/null @@ -1,93 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestSubContainers : ZenjectUnitTestFixture - { - class Test0 - { - } - - [Test] - public void TestIsRemoved() - { - var subContainer = Container.CreateSubContainer(); - var test1 = new Test0(); - - subContainer.Bind().FromInstance(test1); - - Assert.That(ReferenceEquals(test1, subContainer.Resolve())); - - Assert.Throws( - delegate { Container.Resolve(); }); - } - - class Test1 - { - [Inject] - public Test0 Test = null; - } - - [Test] - public void TestCase2() - { - Test0 test0; - Test1 test1; - - var subContainer = Container.CreateSubContainer(); - var test0Local = new Test0(); - - subContainer.Bind().FromInstance(test0Local); - subContainer.Bind().AsSingle(); - - test0 = subContainer.Resolve(); - Assert.IsEqual(test0Local, test0); - - test1 = subContainer.Resolve(); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Assert.Throws( - delegate { Container.Resolve(); }); - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Assert.That(Container.Resolve() != test0); - - Assert.That(Container.Resolve() != test1); - } - - interface IFoo - { - } - - interface IFoo2 - { - } - - class Foo : IFoo, IFoo2 - { - } - - [Test] - public void TestMultipleSingletonDifferentScope() - { - IFoo foo1; - - var subContainer1 = Container.CreateSubContainer(); - subContainer1.Bind().To().AsSingle(); - foo1 = subContainer1.Resolve(); - - var subContainer2 = Container.CreateSubContainer(); - subContainer2.Bind().To().AsSingle(); - var foo2 = subContainer2.Resolve(); - - Assert.That(foo2 != foo1); - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs.meta deleted file mode 100644 index 450ce7d1d..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bc27ceb0add4e284880a47f778bd5433 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs deleted file mode 100644 index db0baa297..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestSubContainers4 : ZenjectUnitTestFixture - { - readonly Dictionary _subContainers = new Dictionary(); - - [Test] - public void RunTest() - { - SetupContainer(); - - var view1 = Container.Resolve(); - - Assert.IsEqual(view1.Controller.Model, view1.Model); - - var view2 = Container.Resolve(); - - Assert.IsEqual(view2.Controller.Model, view2.Model); - - Assert.IsNotEqual(view2.Model, view1.Model); - Assert.IsNotEqual(view2, view1); - } - - void SetupContainer() - { - Container.Bind().FromMethod(SubContainerResolve).AsTransient() - .WhenInjectedInto(); - - Container.Bind().FromMethod(SubContainerResolve).AsTransient() - .WhenInjectedInto(); - - Container.Bind().AsTransient(); - } - - T SubContainerResolve(InjectContext context) - { - Assert.IsNotNull(context.ObjectInstance); - DiContainer subContainer; - - if (!_subContainers.TryGetValue(context.ObjectInstance, out subContainer)) - { - subContainer = context.Container.CreateSubContainer(); - _subContainers.Add(context.ObjectInstance, subContainer); - - InstallViewBindings(subContainer); - } - - return (T)subContainer.Resolve(context); - } - - void InstallViewBindings(DiContainer subContainer) - { - subContainer.Bind().AsSingle(); - subContainer.Bind().AsSingle(); - } - - public class RotorController - { - [Inject] - public RotorModel Model; - } - - public class RotorView - { - [Inject] - public RotorController Controller; - - [Inject] - public RotorModel Model; - } - - public class RotorModel - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs.meta deleted file mode 100644 index 3e7d33240..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestSubContainers4.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9b761fe9578b04148a779d2c323548fb -timeCreated: 1461708052 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs deleted file mode 100644 index fae56a1b3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using ModestTree.Util; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestTaskUpdater - { - DiContainer _container; - - [SetUp] - public void Setup() - { - _container = new DiContainer(); - - _container.Bind>().FromInstance(new TickablesTaskUpdater()); - } - - public void BindTickable(int priority) where TTickable : ITickable - { - _container.BindInterfacesAndSelfTo().AsSingle(); - _container.Bind>().FromInstance(ValuePair.New(typeof(TTickable), priority)); - } - - [Test] - public void TestTickablesAreOptional() - { - Assert.IsNotNull(_container.Resolve>()); - } - - [Test] - // Test that tickables get called in the correct order - public void TestOrder() - { - BindTickable(2); - BindTickable(0); - BindTickable(1); - - var taskUpdater = _container.Resolve>(); - - var tick1 = _container.Resolve(); - var tick2 = _container.Resolve(); - var tick3 = _container.Resolve(); - - int tickCount = 0; - - tick1.TickCalled += delegate - { - Assert.IsEqual(tickCount, 0); - tickCount++; - }; - - tick2.TickCalled += delegate - { - Assert.IsEqual(tickCount, 1); - tickCount++; - }; - - tick3.TickCalled += delegate - { - Assert.IsEqual(tickCount, 2); - tickCount++; - }; - - taskUpdater.UpdateAll(); - } - - class Tickable1 : ITickable - { - public event Action TickCalled = delegate {}; - - public void Tick() - { - TickCalled(); - } - } - - class Tickable2 : ITickable - { - public event Action TickCalled = delegate {}; - - public void Tick() - { - TickCalled(); - } - } - - class Tickable3 : ITickable - { - public event Action TickCalled = delegate {}; - - public void Tick() - { - TickCalled(); - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs.meta deleted file mode 100644 index 8142e0ede..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTaskUpdater.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 191c7c5b01ead0f4283fa0656f3310c8 -timeCreated: 1461708048 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs deleted file mode 100644 index 39fdc0b77..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System.Collections.Generic; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestTestUtil - { - [Test] - public void TestTrue() - { - Assert.That(TestListComparer.ContainSameElements( - new List {1}, - new List {1})); - - Assert.That(TestListComparer.ContainSameElements( - new List {1, 2}, - new List {2, 1})); - - Assert.That(TestListComparer.ContainSameElements( - new List {1, 2, 3}, - new List {3, 2, 1})); - - Assert.That(TestListComparer.ContainSameElements( - new List(), - new List())); - } - - [Test] - public void TestFalse() - { - Assert.That(!TestListComparer.ContainSameElements( - new List {1, 2, 3}, - new List {3, 2, 3})); - - Assert.That(!TestListComparer.ContainSameElements( - new List {1, 2}, - new List {1, 2, 3})); - } - } -} - - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs.meta deleted file mode 100644 index b8bf7dfa9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTestUtil.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 248d9a33864afc54ab7c4d1a664fe81e -timeCreated: 1461708049 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs deleted file mode 100644 index 4a2cc4d95..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -using NUnit.Framework; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class TestTransientMockProvider : ZenjectUnitTestFixture - { - public interface IFoo - { - int GetBar(); - } - - [Test] - public void TestCase1() - { - // Commented out because this requires that zenject be installed with mocking support which isn't always the case - - //Container.FallbackProvider = new TransientMockProvider(Container); - - //var foo = Container.Resolve(); - - //Assert.IsEqual(foo.GetBar(), 0); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs.meta deleted file mode 100644 index 237a416d7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestTransientMockProvider.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 669690277b55b8c419f4d34dbef0cbde -timeCreated: 1461708051 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs deleted file mode 100644 index 888c98db0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs +++ /dev/null @@ -1,226 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestValidation - { - DiContainer Container - { - get; set; - } - - [SetUp] - public void Setup() - { - Container = new DiContainer(true); - Container.Settings = new ZenjectSettings( - ValidationErrorResponses.Throw, RootResolveMethods.All); - } - - [Test] - public void TestFailure() - { - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestSuccess() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Container.ResolveRoots(); - } - - [Test] - public void TestNumCalls() - { - Gorp.CallCount = 0; - - Container.BindInterfacesAndSelfTo().AsSingle(); - - Container.ResolveRoots(); - - Assert.IsEqual(Gorp.CallCount, 1); - } - - [Test] - public void TestFactoryFail() - { - Container.BindFactory(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestFactorySuccess() - { - Container.Bind().AsSingle(); - Container.BindFactory(); - - Container.ResolveRoots(); - } - - [Test] - public void TestSubContainerMethodSuccess() - { - Container.Bind().FromSubContainerResolve().ByMethod( - container => - { - container.Bind().AsSingle(); - container.Bind().AsSingle(); - container.Bind().AsSingle(); - }) - .AsSingle(); - - Container.ResolveRoots(); - } - - [Test] - public void TestSubContainerMethodFailure() - { - Container.Bind().FromSubContainerResolve().ByMethod( - container => - { - container.Bind().AsSingle(); - container.Bind().AsSingle(); - }) - .AsSingle(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestSubContainerInstallerFailure() - { - Container.Bind().FromSubContainerResolve().ByInstaller().AsSingle(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestLazyFail() - { - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestLazySuccess() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Container.ResolveRoots(); - } - - [Test] - public void TestMemoryPoolFailure() - { - Container.BindMemoryPool(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestMemoryPoolSuccess() - { - Container.Bind().AsSingle(); - Container.BindMemoryPool(); - - Container.ResolveRoots(); - } - - [Test] - public void TestCustomValidatable() - { - Container.BindInterfacesAndSelfTo().AsSingle().NonLazy(); - - Container.ResolveRoots(); - - Assert.IsEqual(Container.Resolve().CallCount, 1); - } - - public class Loy : IValidatable, IInitializable, ITickable - { - public int CallCount - { - get; set; - } - - public void Initialize() - { - } - - public void Tick() - { - } - - public void Validate() - { - CallCount++; - } - } - - public class Jaze - { - [Inject] - public LazyInject Qux; - } - - public class QuxInstaller : Installer - { - public override void InstallBindings() - { - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - } - } - - public class Qux - { - } - - public class Bar - { - public Bar(Foo foo) - { - } - - public class Factory : PlaceholderFactory - { - } - - public class Pool : MemoryPool - { - } - } - - public class Foo - { - } - - public interface IGorp - { - } - - public class Gorp : IGorp, IValidatable - { - public static int CallCount - { - get; set; - } - - public void Validate() - { - CallCount++; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs.meta deleted file mode 100644 index 8eea193ae..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidation.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6faaf38387f08ff4ab2b1aeaa3aa6447 -timeCreated: 1527489133 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs deleted file mode 100644 index 568ff62a8..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs +++ /dev/null @@ -1,74 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests -{ - [TestFixture] - public class TestValidationSettings - { - DiContainer Container - { - get; set; - } - - [SetUp] - public void Setup() - { - Container = new DiContainer(true); - } - - // Doesn't work because the logged error is flagged as a test error - //[Test] - //public void TestValidationErrorLogOnly() - //{ - //Container.Settings = new ZenjectSettings(ValidationErrorResponses.Log); - //Container.Bind().AsSingle().NonLazy(); - - //Container.ResolveRoots(); - //} - - [Test] - public void TestValidationErrorThrows() - { - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - - Container.Bind().AsSingle().NonLazy(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestOutsideObjectGraph1() - { - Container.Settings = new ZenjectSettings(ValidationErrorResponses.Throw); - - Container.Bind().AsSingle(); - - Container.ResolveRoots(); - } - - [Test] - public void TestOutsideObjectGraph2() - { - Container.Settings = new ZenjectSettings( - ValidationErrorResponses.Throw, RootResolveMethods.All); - - Container.Bind().AsSingle(); - - Assert.Throws(() => Container.ResolveRoots()); - } - - public class Bar - { - public Bar(Foo foo) - { - } - } - - public class Foo - { - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs.meta deleted file mode 100644 index 0eaab890b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/TestValidationSettings.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 9b700b061b5fac341a8668b2329c3c5e -timeCreated: 1527606589 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs deleted file mode 100644 index e99493c49..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs +++ /dev/null @@ -1,90 +0,0 @@ -using NUnit.Framework; - -namespace Zenject.Tests.Other -{ - [TestFixture] - public class ZenjectProfileTest - { - class Test0 - { - public void DoStuff() - { - } - - public void DoStuff1() - { - } - } - - class Test1 - { - [Inject] - public Test0 TestB - { - set; - get; - } - - [Inject] - public Test0 _testC = null; - - public Test1(Test0 test1, Test0 test2, Test0 test3, Test0 test4) - { - } - - public void DoStuff() - { - } - - public void DoStuff1() - { - } - } - - class Test2 - { - [Inject] - public Test1 TestB - { - set; - get; - } - - [Inject] - public Test1 _testC = null; - - public Test2(Test1 test1, Test1 test2, Test1 test3, Test1 test4) - { - } - } - - [Test] - // Test speed of resolve function - public void Test() - { - //var container = new DiContainer(); - //container.Bind().AsTransient(); - //container.Bind().AsTransient(); - //container.Bind().AsTransient(); - - //var stopwatch = new Stopwatch(); - - //stopwatch.Start(); - - //for (int i = 0; i < 1000; i++) - //{ - //var test0 = container.Resolve(); - //var test1 = container.Resolve(); - //var test2 = container.Resolve(); - //} - - //stopwatch.Stop(); - - //Log.InfoFormat("time = {0}", stopwatch.Elapsed.TotalSeconds); - - //Assert.That(false); - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs.meta deleted file mode 100644 index a18aff468..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Other/ZenjectProfileTest.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 33e5ecde955b52a42bf3454813d30435 -timeCreated: 1461708049 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling.meta deleted file mode 100644 index cf98b7ff7..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: c848a36a28aa7d44e8094314a1f7826b -folderAsset: yes -timeCreated: 1537605290 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs deleted file mode 100644 index 2d36ff528..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs +++ /dev/null @@ -1,352 +0,0 @@ -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using ModestTree; -using Zenject.Internal; - -#pragma warning disable 414 - -namespace Zenject.Tests.Injection -{ - //[TestFixture] - // Conclusion here is that the compiled expressions are basically identical to reflection - // baking during the instantiate (though there are wins during initialization) - // When compiled expressions are not used such as IL2CPP however there is a noticable - // improvement of maybe 15-20% for instantiate - public class TestInstantiateApproaches : ZenjectUnitTestFixture - { - //[Test] - public void TestWithoutReflectionBaking() - { - Log.Trace("Average without baking: {0:0.000}", Run()); - } - - //[Test] - public void TestWithReflectionBaking() - { - Log.Trace("Average with baking: {0:0.000}", Run()); - } - - double Run() - { - Container.Bind().FromInstance(new Test0()); - - // Do not include initial reflection costs - Container.Instantiate(); - Container.Instantiate(); - - var measurements = new List(); - - for (int k = 0; k < 10; k++) - { - var stopwatch = new Stopwatch(); - stopwatch.Start(); - for (int i = 0; i < 10000; i++) - { - Container.Instantiate(); - } - stopwatch.Stop(); - measurements.Add(stopwatch.Elapsed.TotalSeconds); - } - - return measurements.Average(); - } - - [NoReflectionBaking] - class Test0 - { - } - - [NoReflectionBaking] - abstract class FooBaseBaked - { - [Inject] - public Test0 BaseFieldPublic = null; - - [Inject] - Test0 BaseFieldPrivate = null; - - [Inject] - protected Test0 BaseFieldProtected = null; - - [Inject] - public Test0 BasePropertyPublic - { - get; set; - } - - [Inject] - Test0 BasePropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 BasePropertyProtected - { - get; - set; - } - - [Inject] - public void PostInjectBase() - { - DidPostInjectBase = true; - } - - public bool DidPostInjectBase - { - get; private set; - } - - private static void __zenFieldSetter0(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BaseFieldPublic = (Test0)P_1; - } - - private static void __zenFieldSetter1(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BaseFieldPrivate = (Test0)P_1; - } - - private static void __zenFieldSetter2(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BaseFieldProtected = (Test0)P_1; - } - - private static void __zenPropertySetter0(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BasePropertyPublic = (Test0)P_1; - } - - private static void __zenPropertySetter1(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BasePropertyPrivate = (Test0)P_1; - } - - private static void __zenPropertySetter2(object P_0, object P_1) - { - ((FooBaseBaked)P_0).BasePropertyProtected = (Test0)P_1; - } - - private static void __zenInjectMethod0(object P_0, object[] P_1) - { - ((FooBaseBaked)P_0).PostInjectBase(); - } - - [Preserve] - private static InjectTypeInfo CreateInjectTypeInfo() - { - return new InjectTypeInfo(typeof(FooBaseBaked), new InjectTypeInfo.InjectConstructorInfo(null, new InjectableInfo[0]), new InjectTypeInfo.InjectMethodInfo[1] - { - new InjectTypeInfo.InjectMethodInfo(__zenInjectMethod0, new InjectableInfo[0], "PostInjectBase") - }, new InjectTypeInfo.InjectMemberInfo[6] - { - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter0, new InjectableInfo(false, null, "BaseFieldPublic", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter1, new InjectableInfo(false, null, "BaseFieldPrivate", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter2, new InjectableInfo(false, null, "BaseFieldProtected", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter0, new InjectableInfo(false, null, "BasePropertyPublic", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter1, new InjectableInfo(false, null, "BasePropertyPrivate", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter2, new InjectableInfo(false, null, "BasePropertyProtected", typeof(Test0), null, 0)) - }); - } - } - - [NoReflectionBaking] - class FooDerivedBaked : FooBaseBaked - { - public Test0 ConstructorParam = null; - - // Instance - public FooDerivedBaked(Test0 param) - { - ConstructorParam = param; - } - - [Inject] - public void PostInject() - { - } - - [Inject] - public Test0 DerivedFieldPublic = null; - - [Inject] - Test0 DerivedFieldPrivate = null; - - [Inject] - protected Test0 DerivedFieldProtected = null; - - [Inject] - public Test0 DerivedPropertyPublic - { - get; set; - } - - [Inject] - Test0 DerivedPropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 DerivedPropertyProtected - { - get; - set; - } - - private static object __zenCreate(object[] P_0) - { - return new FooDerivedBaked((Test0)P_0[0]); - } - - private static void __zenFieldSetter0(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedFieldPublic = (Test0)P_1; - } - - private static void __zenFieldSetter1(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedFieldPrivate = (Test0)P_1; - } - - private static void __zenFieldSetter2(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedFieldProtected = (Test0)P_1; - } - - private static void __zenPropertySetter0(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedPropertyPublic = (Test0)P_1; - } - - private static void __zenPropertySetter1(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedPropertyPrivate = (Test0)P_1; - } - - private static void __zenPropertySetter2(object P_0, object P_1) - { - ((FooDerivedBaked)P_0).DerivedPropertyProtected = (Test0)P_1; - } - - private static void __zenInjectMethod0(object P_0, object[] P_1) - { - ((FooDerivedBaked)P_0).PostInject(); - } - - [Preserve] - private static InjectTypeInfo CreateInjectTypeInfo() - { - return new InjectTypeInfo(typeof(FooDerivedBaked), new InjectTypeInfo.InjectConstructorInfo(__zenCreate, new InjectableInfo[1] - { - new InjectableInfo(false, null, "param", typeof(Test0), null, 0) - }), new InjectTypeInfo.InjectMethodInfo[1] - { - new InjectTypeInfo.InjectMethodInfo(__zenInjectMethod0, new InjectableInfo[0], "PostInject") - }, new InjectTypeInfo.InjectMemberInfo[6] - { - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter0, new InjectableInfo(false, null, "DerivedFieldPublic", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter1, new InjectableInfo(false, null, "DerivedFieldPrivate", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenFieldSetter2, new InjectableInfo(false, null, "DerivedFieldProtected", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter0, new InjectableInfo(false, null, "DerivedPropertyPublic", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter1, new InjectableInfo(false, null, "DerivedPropertyPrivate", typeof(Test0), null, 0)), - new InjectTypeInfo.InjectMemberInfo(__zenPropertySetter2, new InjectableInfo(false, null, "DerivedPropertyProtected", typeof(Test0), null, 0)) - }); - } - } - - [NoReflectionBaking] - abstract class FooBaseNoBaking - { - [Inject] - public Test0 BaseFieldPublic = null; - - [Inject] - Test0 BaseFieldPrivate = null; - - [Inject] - protected Test0 BaseFieldProtected = null; - - [Inject] - public Test0 BasePropertyPublic - { - get; set; - } - - [Inject] - Test0 BasePropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 BasePropertyProtected - { - get; - set; - } - - [Inject] - public void PostInjectBase() - { - DidPostInjectBase = true; - } - - public bool DidPostInjectBase - { - get; private set; - } - } - - [NoReflectionBaking] - class FooDerivedNoBaking : FooBaseNoBaking - { - public Test0 ConstructorParam = null; - - // Instance - public FooDerivedNoBaking(Test0 param) - { - ConstructorParam = param; - } - - [Inject] - public void PostInject() - { - } - - [Inject] - public Test0 DerivedFieldPublic = null; - - [Inject] - Test0 DerivedFieldPrivate = null; - - [Inject] - protected Test0 DerivedFieldProtected = null; - - [Inject] - public Test0 DerivedPropertyPublic - { - get; set; - } - - [Inject] - Test0 DerivedPropertyPrivate - { - get; - set; - } - - [Inject] - protected Test0 DerivedPropertyProtected - { - get; - set; - } - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs.meta deleted file mode 100644 index f17ed053c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Profiling/TestInstantiateApproaches.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 12c4cac1f74962c48916d2476d6828d0 -timeCreated: 1537582037 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals.meta deleted file mode 100644 index 6a3cfc909..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f6caf5b6d3f510041b368113d86f4459 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs deleted file mode 100644 index 0997ab043..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs +++ /dev/null @@ -1,153 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestAsyncSignals : ZenjectUnitTestFixture - { - static int CallCount; - - [Inject] - SignalBus _signalBus = null; - - [Inject] - Receiver1 _receiver1 = null; - - [Inject] - Receiver2 _receiver2 = null; - - [Inject] - TickableManager _tickManager = null; - - [InjectOptional] - Foo _foo = null; - - public override void Setup() - { - base.Setup(); - - SignalBusInstaller.Install(Container); - ZenjectManagersInstaller.Install(Container); - } - - [Test] - public void TestBasicAsync() - { - Container.DeclareSignal().RunAsync(); - Container.DeclareSignal().RunAsync(); - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Container.BindSignal().ToMethod(x => x.OnSignal).FromResolve(); - Container.BindSignal().ToMethod(x => x.OnSignal).FromResolve(); - - Container.ResolveRoots(); - Container.Resolve().Initialize(); - - Container.Inject(this); - - CallCount = 1; - _receiver1.CallIndex = 0; - _receiver2.CallIndex = 0; - - _signalBus.Fire(); - _signalBus.Fire(); - - Assert.IsEqual(_receiver1.CallIndex, 0); - Assert.IsEqual(_receiver2.CallIndex, 0); - - _tickManager.Update(); - - Assert.IsEqual(_receiver1.CallIndex, 1); - Assert.IsEqual(_receiver2.CallIndex, 2); - } - - [Test] - public void TestTickPriority() - { - Container.DeclareSignal().WithTickPriority(1); - Container.DeclareSignal().WithTickPriority(-4); - - Container.BindInterfacesAndSelfTo().AsSingle(); - - Container.Bind().AsSingle(); - Container.Bind().AsSingle(); - - Container.BindSignal().ToMethod(x => x.OnSignal).FromResolve(); - Container.BindSignal().ToMethod(x => x.OnSignal).FromResolve(); - - Container.ResolveRoots(); - Container.Resolve().Initialize(); - - Container.Inject(this); - - CallCount = 1; - _receiver1.CallIndex = 0; - _receiver2.CallIndex = 0; - _foo.CallIndex = 0; - - _signalBus.Fire(); - _signalBus.Fire(); - - Assert.IsEqual(_receiver1.CallIndex, 0); - Assert.IsEqual(_receiver2.CallIndex, 0); - Assert.IsEqual(_foo.CallIndex, 0); - - _tickManager.Update(); - - Assert.IsEqual(_receiver2.CallIndex, 1); - Assert.IsEqual(_foo.CallIndex, 2); - Assert.IsEqual(_receiver1.CallIndex, 3); - } - - public class Foo : ITickable - { - public int CallIndex - { - get; set; - } - - public void Tick() - { - CallIndex = CallCount++; - } - } - - public class Signal1 - { - } - - public class Signal2 - { - } - - public class Receiver1 - { - public int CallIndex - { - get; set; - } - - public void OnSignal() - { - CallIndex = CallCount++; - } - } - - public class Receiver2 - { - public int CallIndex - { - get; set; - } - - public void OnSignal() - { - CallIndex = CallCount++; - } - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs.meta deleted file mode 100644 index 71a507f7a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestAsyncSignals.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ae6347214d2fec34faa73c79172f642d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs deleted file mode 100644 index f63b04d30..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs +++ /dev/null @@ -1,163 +0,0 @@ -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestBindSignal : ZenjectUnitTestFixture - { - [SetUp] - public void CommonInstall() - { - SignalBusInstaller.Install(Container); - Container.Inject(this); - } - - [Test] - public void TestIncompleteBinding() - { - Container.DeclareSignal(); - Container.BindSignal(); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestBindWithoutDeclaration() - { - Container.BindSignal().ToMethod(() => {}); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestStaticMethodHandler() - { - Container.DeclareSignal(); - - bool received = false; - - Container.BindSignal().ToMethod(() => received = true); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(received); - } - - [Test] - public void TestStaticMethodHandlerWithArgs() - { - Container.DeclareSignal(); - - FooSignal received = null; - - Container.BindSignal().ToMethod(x => received = x); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - var sent = new FooSignal(); - - Assert.IsNull(received); - signalBus.Fire(sent); - Assert.IsEqual(received, sent); - } - - [Test] - public void TestInstanceMethodHandler() - { - Container.DeclareSignal(); - - var qux = new Qux(); - Container.BindSignal() - .ToMethod(x => x.OnFoo).From(b => b.FromInstance(qux)); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - - Assert.That(!qux.HasRecievedSignal); - signalBus.Fire(); - Assert.That(qux.HasRecievedSignal); - } - - [Test] - public void TestInstanceMethodHandler2() - { - Container.DeclareSignal(); - - var gorp = new Gorp(); - Container.BindSignal() - .ToMethod(x => x.OnFoo).From(b => b.FromInstance(gorp)); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - var sent = new FooSignal(); - - Assert.IsNull(gorp.ReceivedValue); - signalBus.Fire(sent); - Assert.IsEqual(gorp.ReceivedValue, sent); - } - - [Test] - public void TestMoveIntoDirectSubContainers() - { - Container.DeclareSignal(); - - var gorp = new Gorp(); - - Container.BindSignal() - .ToMethod(x => x.OnFoo).From(b => b.FromInstance(gorp)).MoveIntoDirectSubContainers(); - Container.ResolveRoots(); - - var signalBus1 = Container.Resolve(); - var sent = new FooSignal(); - - Assert.IsNull(gorp.ReceivedValue); - signalBus1.Fire(sent); - Assert.IsNull(gorp.ReceivedValue); - - var subContainer = Container.CreateSubContainer(); - subContainer.ResolveRoots(); - - var signalBus2 = Container.Resolve(); - - Assert.IsNull(gorp.ReceivedValue); - signalBus2.Fire(sent); - Assert.IsEqual(gorp.ReceivedValue, sent); - } - - public class Qux - { - public void OnFoo() - { - HasRecievedSignal = true; - } - - public bool HasRecievedSignal - { - get; private set; - } - } - - public class Gorp - { - public void OnFoo(FooSignal foo) - { - ReceivedValue = foo; - } - - public FooSignal ReceivedValue - { - get; private set; - } - } - - public class FooSignal - { - } - } -} - - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs.meta deleted file mode 100644 index f1b0b7908..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestBindSignal.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 907fe89581f70f64e88ceda5022ffdd6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs deleted file mode 100644 index 6035c3dc9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestSignalIdentifiers : ZenjectUnitTestFixture - { - [SetUp] - public void CommonInstall() - { - SignalBusInstaller.Install(Container); - } - - [Test] - public void TestMissingDeclaration() - { - var signalBus = Container.Resolve(); - - Assert.Throws(() => signalBus.FireId("asdf")); - } - - [Test] - public void TestSubscribeAndUnsubscribe() - { - var signalId = "asdf"; - - Container.DeclareSignal().WithId(signalId); - - var signalBus = Container.Resolve(); - - bool received = false; - - Action callback = () => received = true; - signalBus.SubscribeId(signalId, callback); - - Assert.Throws(() => signalBus.Subscribe(callback)); - - Assert.That(!received); - signalBus.FireId(signalId); - Assert.That(received); - - Assert.Throws(() => signalBus.Fire()); - Assert.Throws(() => signalBus.FireId("asdfz")); - - received = false; - signalBus.FireId(signalId); - Assert.That(received); - - signalBus.UnsubscribeId(signalId, callback); - - received = false; - signalBus.FireId(signalId); - Assert.That(!received); - } - - [Test] - public void TestIncompleteBinding() - { - Container.DeclareSignal().WithId("asdf"); - Container.BindSignal().WithId("asdf"); - - Assert.Throws(() => Container.FlushBindings()); - } - - [Test] - public void TestBindWithoutDeclaration() - { - Container.BindSignal().WithId("asdf").ToMethod(() => {}); - - Assert.Throws(() => Container.ResolveRoots()); - } - - [Test] - public void TestStaticMethodHandler() - { - Container.DeclareSignal().WithId("asdf"); - - bool received = false; - - Container.BindSignal().WithId("asdf").ToMethod(() => received = true); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - - Assert.That(!received); - signalBus.FireId("asdf"); - Assert.That(received); - } - - [Test] - public void TestStaticMethodHandlerWithArgs() - { - Container.DeclareSignal().WithId("asdf"); - - FooSignal received = null; - - Container.BindSignal().WithId("asdf").ToMethod(x => received = x); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - var sent = new FooSignal(); - - Assert.IsNull(received); - signalBus.FireId("asdf", sent); - Assert.IsEqual(received, sent); - } - - [Test] - public void TestInstanceMethodHandler() - { - Container.DeclareSignal().WithId("asdf"); - - var qux = new Qux(); - Container.BindSignal().WithId("asdf") - .ToMethod(x => x.OnFoo).From(b => b.FromInstance(qux)); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - - Assert.That(!qux.HasRecievedSignal); - signalBus.FireId("asdf"); - Assert.That(qux.HasRecievedSignal); - } - - public class Qux - { - public void OnFoo() - { - HasRecievedSignal = true; - } - - public bool HasRecievedSignal - { - get; private set; - } - } - - public class FooSignal - { - } - - public class Foo - { - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs.meta deleted file mode 100644 index 910baf1e3..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalIdentifiers.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 858c963bb28d506418f719d41e989e33 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs deleted file mode 100644 index 1215d701c..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - public class FooSignal - { - } - - [TestFixture] - public class TestSignalRuntimeDeclaration : ZenjectUnitTestFixture - { - [SetUp] - public void InstallCommon() - { - SignalBusInstaller.Install(Container); - Container.Inject(this); - } - - [Inject] - SignalBus _signalBus = null; - - [Test] - public void TestMissingDeclaration() - { - Assert.Throws(() => _signalBus.Fire(new FooSignal())); - } - - [Test] - public void TestFireSuccess() - { - _signalBus.DeclareSignal(); - _signalBus.Fire(new FooSignal()); - } - - [Test] - public void TestIdentifierMissing() - { - _signalBus.DeclareSignal(); - Assert.Throws(() => _signalBus.FireId("asdf", new FooSignal())); - } - - [Test] - public void TestIdentifier() - { - _signalBus.DeclareSignal("asdf"); - _signalBus.FireId("asdf", new FooSignal()); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs.meta deleted file mode 100644 index 55006b6ac..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalRuntimeDeclaration.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d126648ba38c37f4bbd46176fd19e72a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs deleted file mode 100644 index 478a2eb80..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestSignals1 : ZenjectUnitTestFixture - { - [Test] - public void TestMissingDeclaration() - { - SignalBusInstaller.Install(Container); - - var signalBus = Container.Resolve(); - - Assert.Throws(() => signalBus.Fire()); - } - - [Test] - public void TestSubscribeAndUnsubscribe() - { - SignalBusInstaller.Install(Container); - - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - bool received = false; - - Action callback = () => received = true; - signalBus.Subscribe(callback); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(received); - - received = false; - signalBus.Fire(); - Assert.That(received); - - signalBus.Unsubscribe(callback); - - received = false; - signalBus.Fire(); - Assert.That(!received); - } - - [Test] - public void TestWithArgs() - { - SignalBusInstaller.Install(Container); - - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - FooSignal received = null; - - signalBus.Subscribe(x => received = x); - - var sent = new FooSignal(); - - signalBus.Fire(sent); - - Assert.IsEqual(received, sent); - } - - [Test] - public void TestUnsubscribeWithoutSubscribe() - { - SignalBusInstaller.Install(Container); - - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - Action callback = () => {}; - - Assert.Throws(() => signalBus.Unsubscribe(callback)); - - signalBus.TryUnsubscribe(callback); - - signalBus.Subscribe(callback); - signalBus.Unsubscribe(callback); - } - - [Test] - public void TestUntypedSubscribe() - { - SignalBusInstaller.Install(Container); - - Container.DeclareSignal(); - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - object received = null; - - signalBus.Subscribe(typeof(FooSignal), x => - { - Assert.That(x is FooSignal); - received = x; - }); - - var data = new FooSignal(); - - signalBus.Fire(data); - - Assert.IsEqual(received, data); - - signalBus.Fire(new BarSignal()); - } - - public class FooSignal - { - } - - public class BarSignal - { - public string Value; - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs.meta deleted file mode 100644 index c0f454302..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignals1.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5d50d2db331ed4b46b395d73e2032024 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs deleted file mode 100644 index 151648f25..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestSignalsAdvanced : ZenjectUnitTestFixture - { - [SetUp] - public void CommonInstall() - { - ZenjectManagersInstaller.Install(Container); - SignalBusInstaller.Install(Container); - Container.Inject(this); - } - - [Test] - public void TestSubscribeDeterministicOrder() - { - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - int count = 1; - - int order1 = 0; - Action handler1 = () => order1 = count++; - - int order2 = 0; - Action handler2 = () => order2 = count++; - - int order3 = 0; - Action handler3 = () => order3 = count++; - - signalBus.Subscribe(handler1); - signalBus.Subscribe(handler2); - signalBus.Subscribe(handler3); - - signalBus.Fire(); - - Assert.IsEqual(order1, 1); - Assert.IsEqual(order2, 2); - Assert.IsEqual(order3, 3); - } - - [Test] - public void TestSubscribeUnsubscribeInsideHandler() - { - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - bool received = false; - - Action handler2 = () => received = true; - - Action handler = () => - { - signalBus.Subscribe(handler2); - }; - - Action handler3 = () => - { - signalBus.Unsubscribe(handler2); - }; - - signalBus.Subscribe(handler); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(!received); - // handler2 is subscribed now - - signalBus.Unsubscribe(handler); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(received); - received = false; - - signalBus.Subscribe(handler3); - Assert.That(!received); - signalBus.Fire(); - // Should be called before handler 3 so should receive it - Assert.That(received); - received = false; - signalBus.Unsubscribe(handler3); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(!received); - received = false; - - Assert.IsEqual(signalBus.NumSubscribers, 0); - - // Now test unsubscribing ourself in our own handler - - Action handler4 = null; - handler4 = () => - { - received = true; - signalBus.Unsubscribe(handler4); - }; - signalBus.Subscribe(handler4); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(received); - received = false; - - signalBus.Fire(); - Assert.That(!received); - } - - [Test] - public void TestSubcontainers1() - { - Container.DeclareSignal(); - - var signalBus1 = Container.Resolve(); - - var subContainer = Container.CreateSubContainer(); - - var signalBus2 = subContainer.Resolve(); - - bool received = false; - Action callback = () => received = true; - - signalBus2.Subscribe(callback); - - Assert.That(!received); - signalBus1.Fire(); - Assert.That(received); - - subContainer.Resolve().LateDispose(); - - // Signal should unregister automatically when the subcontainer is disposed - received = false; - signalBus1.Fire(); - Assert.That(!received); - } - - [Test] - public void TestSignalDeclarationSettingsRequireHandlerMissing() - { - Container.DeclareSignal(); - - var signalBus = Container.Resolve(); - - signalBus.Fire(); - } - - [Test] - public void TestSignalDeclarationSettingsRequireHandler() - { - Container.DeclareSignal().RequireSubscriber(); - - var signalBus = Container.Resolve(); - - Assert.Throws(() => signalBus.Fire()); - } - - [Test] - public void TestSignalDeclarationSettingsRunAsync1() - { - Container.DeclareSignal().RunAsync(); - Container.ResolveRoots(); - Container.Resolve().Initialize(); - - var signalBus = Container.Resolve(); - - bool received = false; - signalBus.Subscribe(() => received = true); - - Assert.That(!received); - signalBus.Fire(); - Assert.That(!received); - - Container.Resolve().Update(); - Assert.That(received); - } - - [Test] - public void TestIsDeclared1() - { - Container.DeclareSignal(); - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - Assert.That(signalBus.IsSignalDeclared()); - } - - [Test] - public void TestIsDeclared2() - { - Container.ResolveRoots(); - - var signalBus = Container.Resolve(); - Assert.That(!signalBus.IsSignalDeclared()); - } - - [Test] - public void TestSignalDeclarationSettingsRunAsync2() - { - Container.DeclareSignal().RunAsync(); - Container.ResolveRoots(); - Container.Resolve().Initialize(); - - var signalBus = Container.Resolve(); - - int callCount = 0; - - Action handler = () => - { - callCount++; - signalBus.Fire(); - }; - - signalBus.Subscribe(handler); - - Assert.IsEqual(callCount, 0); - signalBus.Fire(); - Assert.IsEqual(callCount, 0); - - Container.Resolve().Update(); - Assert.IsEqual(callCount, 1); - Container.Resolve().Update(); - Assert.IsEqual(callCount, 2); - } - - public class FooSignal - { - } - - public class BarSignal - { - public string Value; - } - } -} - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs.meta deleted file mode 100644 index 3eee0b232..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestSignalsAdvanced.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a29fed4f37865b6499168681c2fc1460 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs deleted file mode 100644 index 4111bb012..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using NUnit.Framework; -using Assert = ModestTree.Assert; - -namespace Zenject.Tests.Signals -{ - [TestFixture] - public class TestUsingSignalBusDirectly : ZenjectUnitTestFixture - { - [SetUp] - public void CommonInstall() - { - ZenjectManagersInstaller.Install(Container); - SignalBusInstaller.Install(Container); - Container.Inject(this); - } - - [Inject] - SignalBus _signalBus = null; - - [Test] - public void TestDeclareSignal() - { - _signalBus.DeclareSignal(); - - bool receivedResponse = false; - - _signalBus.Subscribe(() => - { - receivedResponse = true; - }); - - Assert.That(!receivedResponse); - - _signalBus.Fire(); - - Assert.That(receivedResponse); - } - - [Test] - public void TestDeclareSignalMissing() - { - _signalBus.DeclareSignal(); - _signalBus.Fire(); - } - - [Test] - public void TestDeclareSignalMissingButRequired() - { - _signalBus.DeclareSignal(null, SignalMissingHandlerResponses.Throw); - Assert.Throws(() => _signalBus.Fire()); - } - - public class FooSignal - { - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs.meta deleted file mode 100644 index ee10f0000..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Signals/TestUsingSignalBusDirectly.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b8a3799f4829f4e79935f4801ab83a3d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util.meta deleted file mode 100644 index 2a94df133..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 0c70a9f9b8bf86e4dab45a65e62bda60 -folderAsset: yes -timeCreated: 1461711435 -licenseType: Pro -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs deleted file mode 100644 index 12dd17aa9..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using ModestTree; -using Assert=ModestTree.Assert; - -namespace Zenject.Tests -{ - public static class TestListComparer - { - public static bool ContainSameElements(IEnumerable listA, IEnumerable listB) - { - return ContainSameElementsInternal(listA.Cast().ToList(), listB.Cast().ToList()); - } - - static bool ContainSameElementsInternal( - List listA, List listB) - { - // We don't care how they are sorted as long as they are sorted the same way so just use hashcode - Comparison comparer = (object left, object right) => (left.GetHashCode().CompareTo(right.GetHashCode())); - - listA.Sort(comparer); - listB.Sort(comparer); - - return Enumerable.SequenceEqual(listA, listB); - } - - public static string PrintList(List list) - { - return list.Select(x => x.ToString()).ToArray().Join(","); - } - } -} diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs.meta deleted file mode 100644 index d2b9fe0c0..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Util/TestListComparer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bf5f121e858986e43bb2591c885b5507 -timeCreated: 1461708053 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef deleted file mode 100644 index 4dfb19b1a..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "Zenject-UnitTests-Editor", - "references": [ - "Zenject", - "Zenject-TestFramework", - "UnityEngine.TestRunner", - "UnityEditor.TestRunner" - ], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": true, - "precompiledReferences": [ - "Zenject-usage.dll", - "nunit.framework.dll" - ], - "autoReferenced": false, - "defineConstraints": [ - "UNITY_INCLUDE_TESTS" - ], - "versionDefines": [], - "noEngineReferences": false -} \ No newline at end of file diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef.meta deleted file mode 100644 index 61c2cf989..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Zenject-UnitTests-Editor.asmdef.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ca74154b909888b4489cf0ce196562fe -timeCreated: 1531030249 -licenseType: Free -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt deleted file mode 100644 index 79824536b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt +++ /dev/null @@ -1,3 +0,0 @@ - -Note that the UnitTests here require that you also include the TestingFramework folder in your project as well. - diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt.meta deleted file mode 100644 index 66f13a52b..000000000 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/ReadMe.txt.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4f3e3f9dfc5945a409244fec02c55536 -timeCreated: 1465496279 -licenseType: Free -TextScriptImporter: - userData: - assetBundleName: - assetBundleVariant: