Feature/sql exception bug check (#90)

* Added test for OSX/Linux to check for the SqlException error code bug in .NET core

* fix style

* closed summary
This commit is contained in:
Mitchell Sternke
2016-10-12 14:00:33 -07:00
committed by GitHub
parent 253298b158
commit 9f39ac6014
2 changed files with 39 additions and 0 deletions

View File

@@ -14,6 +14,14 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Utility
test();
}
}
public static void RunIfLinuxOrOSX(Action test)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
test();
}
}
public static void RunIfWindows(Action test)
{