xUnit.net
Xunit.Sdk.PlatformSpecificAssemblyAttribute Class Reference

Marks an assembly as a platform specific assembly for use with xUnit.net. Type references from such assemblies are allowed to use a special suffix ("My.Assembly.{Platform}"), which will automatically be translated into the correct platform-specific name ("My.Assembly.desktop", "My.Assembly.win8", etc.). This affects both extensibility points which require specifying a string-based type name and assembly, as well as serialization. More...

Inheritance diagram for Xunit.Sdk.PlatformSpecificAssemblyAttribute:

Detailed Description

Marks an assembly as a platform specific assembly for use with xUnit.net. Type references from such assemblies are allowed to use a special suffix ("My.Assembly.{Platform}"), which will automatically be translated into the correct platform-specific name ("My.Assembly.desktop", "My.Assembly.win8", etc.). This affects both extensibility points which require specifying a string-based type name and assembly, as well as serialization.

In v2.1 and later, the supported platform target names include:

"desktop" (for desktop and PCL tests), "dotnet" (everything else).

In v2.0, the following names were also supported:

"iOS-Universal" (for Xamarin test projects targeting iOS), "MonoAndroid" (for Xamarin MonoAndroid tests), "MonoTouch" (for Xamarin MonoTouch tests), "universal" (for Windows Phone 8.1 and Windows 8.1 tests), "win8" (for Windows 8 tests), "wp8" (for Windows Phone 8 Silverlight tests).

For backward compatibility reasons, the v2.1 runners will support tests linked against the v2.0 execution libraries.

Note that file names may be case sensitive (when running on platforms with case sensitive file systems like Linux), so ensure that your assembly file name casing is consistent, and that you use the suffixes here with the exact case shown.


The documentation for this class was generated from the following file: