-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1135 from enricosada/disable_culture_specific_tes…
…ts_in_non_en_culture disable tests who require en culture, if current culture is not en
- Loading branch information
Showing
4 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module FSharpTestSuiteAsserts | ||
|
||
open PlatformHelpers | ||
open FSharpTestSuiteTypes | ||
|
||
let requireVSUltimate cfg = attempt { | ||
do! match cfg.INSTALL_SKU with | ||
| Some (Ultimate) -> Success | ||
| x -> | ||
// IF /I "%INSTALL_SKU%" NEQ "ULTIMATE" ( | ||
// echo Test not supported except on Ultimate | ||
NUnitConf.skip (sprintf "Test not supported except on Ultimate, was %A" x) | ||
// exit /b 0 | ||
// ) | ||
} | ||
|
||
let requireENCulture () = attempt { | ||
do! match System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName with | ||
| "en" -> Success | ||
| c -> | ||
NUnitConf.skip (sprintf "Test not supported except en Culture, was %s" c) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters