PlatformRestrictedTheoryAttribute Class

Summary

Base class for theory attributes that restrict execution to specific platforms.
Namespace
Cake.Testing.Xunit
Base Types
  • TheoryAttribute
Derived Types
graph BT Type-->Base0["TheoryAttribute"] Type["PlatformRestrictedTheoryAttribute"] class Type type-node Derived0["NonWindowsTheoryAttribute"]-->Type click Derived0 "/api/Cake.Testing.Xunit/NonWindowsTheoryAttribute" Derived1["WindowsTheoryAttribute"]-->Type click Derived1 "/api/Cake.Testing.Xunit/WindowsTheoryAttribute"

Syntax

public abstract class PlatformRestrictedTheoryAttribute : TheoryAttribute

Constructors

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<PlatformRestrictedTheoryAttribute>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<PlatformRestrictedTheoryAttribute>(PlatformRestrictedTheoryAttribute[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<PlatformRestrictedTheoryAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<PlatformRestrictedTheoryAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<PlatformRestrictedTheoryAttribute>(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<PlatformRestrictedTheoryAttribute>(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