diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 19:09:33 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 19:09:33 -0400 |
| commit | 7c1e566113d59699af1624186c64eca67f063fc6 (patch) | |
| tree | 5a6850a695986872d5d0b09d7dab8421628fe33e /Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-attribute-unityplatform.md | |
| parent | dd117b77aae1d8be7563b360d05b842a73b7dab2 (diff) | |
| download | Project-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-attribute-unityplatform.md')
| -rw-r--r-- | Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-attribute-unityplatform.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-attribute-unityplatform.md b/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-attribute-unityplatform.md deleted file mode 100644 index 4e08d1d..0000000 --- a/Library/PackageCache/com.unity.test-framework@1.1.11/Documentation~/reference-attribute-unityplatform.md +++ /dev/null @@ -1,35 +0,0 @@ -# UnityPlatform attribute
-
-Use this attribute to define a specific set of platforms you want or do not want your test(s) to run on.
-
-You can use this attribute on the test method, test class, or test assembly level. Use the supported [RuntimePlatform](https://docs.unity3d.com/ScriptReference/RuntimePlatform.html) enumeration values to specify the platforms. You can also specify which platforms to test by passing one or more `RuntimePlatform` values along with or without the include or exclude properties as parameters to the [Platform](https://github.com/nunit/docs/wiki/Platform-Attribute) attribute constructor.
-
-The test(s) skips if the current target platform is:
-
-- Not explicitly specified in the included platforms list
-- In the excluded platforms list
-
-```c#
-using UnityEngine;
-using UnityEngine.TestTools;
-using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
- [Test]
- [UnityPlatform(RuntimePlatform.WindowsPlayer)]
- public void TestMethod()
- {
- Assert.AreEqual(Application.platform, RuntimePlatform.WindowsPlayer);
- }
-}
-```
-
-## Properties
-
-| Syntax | Description |
-| --------------------------- | ------------------------------------------------------------ |
-| `RuntimePlatform[] exclude` | List the platforms you do not want to have your tests run on. |
-| `RuntimePlatform[] include` | A subset of platforms you need to have your tests run on. |
-
|
