Skip to content

Commit

Permalink
Add detection for desktop .net framework and skip running certain tes…
Browse files Browse the repository at this point in the history
…ts if not executing there
  • Loading branch information
Oren Novotny committed Feb 26, 2017
1 parent f892b3d commit be0d40b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void It_builds_desktop_library_successfully_on_windows()
[Fact]
public void It_builds_all_targets_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class GivenThatWeWantToBuildALibraryWithTfm : SdkTest
[Fact]
public void It_builds_the_monoandroid_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -54,7 +54,7 @@ public void It_builds_the_monoandroid_library_successfully_on_windows()
[Fact]
public void It_builds_the_net40_client_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -86,7 +86,7 @@ public void It_builds_the_net40_client_library_successfully_on_windows()
[Fact]
public void It_builds_the_net45_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -145,7 +145,7 @@ public void It_builds_the_netstandard15_library_successfully()
[Fact]
public void It_builds_the_portable_profile44_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public void It_builds_the_portable_profile44_library_successfully_on_windows()
[Fact]
public void It_builds_the_portable_profile151_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -210,7 +210,7 @@ public void It_builds_the_portable_profile151_library_successfully_on_windows()
[Fact]
public void It_builds_the_portable_profile259_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -242,7 +242,7 @@ public void It_builds_the_portable_profile259_library_successfully_on_windows()
[Fact]
public void It_builds_the_sl5_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -274,7 +274,7 @@ public void It_builds_the_sl5_library_successfully_on_windows()
[Fact]
public void It_builds_the_win8_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -307,7 +307,7 @@ public void It_builds_the_win8_library_successfully_on_windows()
[Fact]
public void It_builds_the_win81_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -340,7 +340,7 @@ public void It_builds_the_win81_library_successfully_on_windows()
[Fact]
public void It_builds_the_wp8_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -372,7 +372,7 @@ public void It_builds_the_wp8_library_successfully_on_windows()
[Fact]
public void It_builds_the_wp81_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -404,7 +404,7 @@ public void It_builds_the_wp81_library_successfully_on_windows()
[Fact]
public void It_builds_the_wpa81_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -437,7 +437,7 @@ public void It_builds_the_wpa81_library_successfully_on_windows()
[Fact]
public void It_builds_the_uap10_0_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -469,7 +469,7 @@ public void It_builds_the_uap10_0_library_successfully_on_windows()
[Fact]
public void It_builds_the_xamarinios_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -501,7 +501,7 @@ public void It_builds_the_xamarinios_library_successfully_on_windows()
[Fact]
public void It_builds_the_xamarinmac_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -532,7 +532,7 @@ public void It_builds_the_xamarinmac_library_successfully_on_windows()
[Fact]
public void It_builds_the_xamarintvos_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down Expand Up @@ -564,7 +564,7 @@ public void It_builds_the_xamarintvos_library_successfully_on_windows()
[Fact]
public void It_builds_the_xamarinwatchos_library_successfully_on_windows()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (!UsingFullFrameworkMSBuild)
{
return;
}
Expand Down

0 comments on commit be0d40b

Please sign in to comment.