diff --git a/Documentation/AutoMocking.md b/Documentation/AutoMocking.md index 260c730c4..5350c3601 100644 --- a/Documentation/AutoMocking.md +++ b/Documentation/AutoMocking.md @@ -48,7 +48,7 @@ Then you can implement the fields of the IWebServer interface and configure them Zenject also allows you to even avoid having to write the MockWebServer class in favour of using a library called "Moq" which does all the work for you. -Note that by default, Auto-mocking is not enabled in Zenject. If you wish to use the auto-mocking feature then you need to go to your Zenject install directory and extract the contents of "Extras/ZenjectAutoMocking.zip". Note that there are multiple versions of Moq.dll included in the zip and that you should use the one that targets the Scripting Runtime Version that you have configured in your player settings. Also note that if you're using Scripting Runtime Version 3.5, that you might also need to change your "Api Compatibility Level" from ".NET 2.0 Subset" to ".NET 2.0" +Note that by default, Auto-mocking is not enabled in Zenject. If you wish to use the auto-mocking feature then you need to go to your Zenject install directory and extract the contents of "OptionalExtras\TestFramework\Editor\AutoMocking.zip" into that same directory. Note that there are multiple versions of Moq.dll included in the zip and that you should use the one that targets the Scripting Runtime Version that you have configured in your player settings. Also note that if you're using Scripting Runtime Version 3.5, that you might also need to change your "Api Compatibility Level" from ".NET 2.0 Subset" to ".NET 2.0" After extracting the auto mocking package it is just a matter of using the following syntax to mock out various parts of your project: diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip similarity index 99% rename from UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip rename to UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip index f44398967..815459d6d 100644 Binary files a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip and b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip differ diff --git a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip.meta similarity index 56% rename from UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta rename to UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip.meta index 778f56896..4837b0e3c 100644 --- a/UnityProject/Assets/Plugins/Zenject/OptionalExtras/AutoMocking.zip.meta +++ b/UnityProject/Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/AutoMocking.zip.meta @@ -1,8 +1,9 @@ fileFormatVersion: 2 -guid: 8251a01fd33c17c4692cf0bebf5ac9a9 -timeCreated: 1510810097 +guid: 0c89973744c794a49a115e1bf158fab5 +timeCreated: 1535352565 licenseType: Free DefaultImporter: + externalObjects: {} userData: assetBundleName: assetBundleVariant: