Excluded platforms.
Sets the list of tests to skip on platforms specified using the RuntimePlatform enumeration. No tests are excluded if the include
property is not null.
no example available in JavaScript
using UnityEngine; using UnityEngine.TestTools; using NUnit.Framework;
[TestFixture] public class TestClass { [Test] [UnityPlatform(exclude = new[] {RuntimePlatform.WindowsEditor })] public void TestMethod() { Assert.AreNotEqual(Application.platform, RuntimePlatform.WindowsEditor); } }
Did you find this page useful? Please give it a rating: