Version: 2019.1
public RuntimePlatform[] exclude ;

説明

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.

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); } }