<PackageReference Include="NUnit" Version="4.2.1" />

InvalidPlatformException

InvalidPlatformException is thrown when the platform name supplied to a test is not recognized.
using System; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace NUnit.Framework.Internal { [Serializable] [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] internal class InvalidPlatformException : ArgumentException { public InvalidPlatformException() { } public InvalidPlatformException(string message) : base(message) { } public InvalidPlatformException(string message, Exception inner) : base(message, inner) { } protected InvalidPlatformException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }