NonWindowsTheoryAttribute Class

Summary

Marks a test method as a theory that should only run on non-Windows platforms.
Namespace
Cake.Testing.Xunit
Base Types
graph BT Type-->Base0["PlatformRestrictedTheoryAttribute"] click Base0 "/api/Cake.Testing.Xunit/PlatformRestrictedTheoryAttribute" Base0-->Base1["TheoryAttribute"] Type["NonWindowsTheoryAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class NonWindowsTheoryAttribute : PlatformRestrictedTheoryAttribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
NonWindowsTheoryAttribute(string) Initializes a new instance of the NonWindowsTheoryAttribute class.

Properties

Name Value Summary
Reason string
Gets the reason for the platform restriction.
Skip string
Gets or sets the reason for skipping the test.

Extension Methods

Name Value Summary
Dump<NonWindowsTheoryAttribute>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<NonWindowsTheoryAttribute>(NonWindowsTheoryAttribute[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<NonWindowsTheoryAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<NonWindowsTheoryAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<NonWindowsTheoryAttribute>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<NonWindowsTheoryAttribute>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin