-
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.
refactor move duplicated functions to module
- Loading branch information
1 parent
7772bb0
commit aa8fc5f
Showing
4 changed files
with
25 additions
and
36 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