Version: 2018.2
public RuntimePlatform[] exclude ;

Description

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