summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-04-20 19:09:33 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-04-20 19:09:33 -0400
commit7c1e566113d59699af1624186c64eca67f063fc6 (patch)
tree5a6850a695986872d5d0b09d7dab8421628fe33e /Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md
parentdd117b77aae1d8be7563b360d05b842a73b7dab2 (diff)
downloadProject-Sandbox-7c1e566113d59699af1624186c64eca67f063fc6.tar.gz
Project-Sandbox-7c1e566113d59699af1624186c64eca67f063fc6.tar.bz2
Project-Sandbox-7c1e566113d59699af1624186c64eca67f063fc6.zip
Upgraded Unity
Diffstat (limited to 'Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md')
-rw-r--r--Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md29
1 files changed, 0 insertions, 29 deletions
diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md b/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md
deleted file mode 100644
index 7f7b06e..0000000
--- a/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-itest-run-settings.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# ITestRunSettings
-`ITestRunSettings` lets you set any of the global settings right before building a Player for a test run and then reverts the settings afterward.
-`ITestRunSettings` implements [IDisposable](https://docs.microsoft.com/en-us/dotnet/api/system.idisposable), and runs after building the Player with tests.
-
-## Public methods
-
-| Syntax | Description |
-| ---------------- | ------------------------------------------------------------ |
-| `void Apply()` | A method called before building the Player. |
-| `void Dispose()` | A method called after building the Player or if the build failed. |
-
-## Example
-The following example sets the iOS SDK version to be the simulator SDK and resets it to the original value after the run.
-``` C#
-public class MyTestSettings : ITestRunSettings
-{
- private iOSSdkVersion originalSdkVersion;
- public void Apply()
- {
- originalSdkVersion = PlayerSettings.iOS.sdkVersion;
- PlayerSettings.iOS.sdkVersion = iOSSdkVersion.SimulatorSDK;
- }
-
- public void Dispose()
- {
- PlayerSettings.iOS.sdkVersion = originalSdkVersion;
- }
-}
-``` \ No newline at end of file