PowerShell/test/powershell/Language/Scripting
xtqqczze 743983390e Update pester syntax to v4 (#11544)
* Capitalize 'Should' command and fix whitespace

```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```

* Capitalise and apply hyphen to 'Not' parameter

```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```

* Capitalise and apply hyphen to 'Be' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```

* Capitalise and apply hyphen to 'BeExactly' parameter

$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'

* Capitalise and apply hyphen to 'BeGreaterThan' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```

* Use 'BeTrue' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```

* Use 'BeFalse' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```

* Capitalise and apply hyphen to 'Match' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```

* Capitalise and apply hyphen to 'Throw' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```

* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter

```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```

* Capitalise 'Because' parameter

```powershell
$_ -ireplace '\s-because\b',' -Because'
```

* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
..
Debugging Normalize line endings before comparing string in tests (#11499) 2020-01-08 13:33:28 -08:00
en-US
fr-FR
NativeExecution Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
newbase
ActionPreference.Tests.ps1 Various test fixes for debugger and remoting (#11528) 2020-01-08 16:23:38 -08:00
Array.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
CheckRestrictedlanguage.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
CmdletDeclaration.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
CommonParameters.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
ConstrainedLanguageMode.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
Delegates.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
DeserializedMethods.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
DeserializedTypeConversion.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
DollarHook.Tests.ps1 Stop blindly setting $? to true for ParenExpression, SubExpression and ArrayExpression (#11040) 2019-11-15 11:57:45 -08:00
Dynamicparameters.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
ErrorPosition.Tests.ps1 Test-Path: Return $false when given an empty or $null -Path/-LiteralPath value (#8080) 2018-11-21 10:08:31 +05:00
ForeachParallel.Tests.ps1 Mark -parallel and -throttlelimit reserved for foreach and switch statements (#10328) 2019-08-15 14:41:41 -07:00
Generics.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
HashtableToPSCustomObjectConversion.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
I18n.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
I18n.Tests_fallback.psd1
Indexer.Tests.ps1 Use CIM cmdlets instead of WMI cmdlets in tests (#11423) 2020-01-03 10:24:06 -08:00
LineEndings.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
MyInvocation.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
NullRepresentatives.Tests.ps1 Consider DBNull.Value and NullString.Value the same as $null when comparing with $null and casting to bool (#9794) 2019-06-28 11:39:34 -07:00
OrderedAttributeForHashTables.Tests.ps1 Use CIM cmdlets instead of WMI cmdlets in tests (#11423) 2020-01-03 10:24:06 -08:00
OutErrorVariable.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
ParameterBinding.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
PSSerializer.Tests.ps1 Fix minor breakpoint re-hydration bug (#10339) 2019-08-15 14:55:45 -07:00
Requires.Tests.ps1 Fix #requires -version for pwsh 7 to include 6.1 and 6.2 in PSCompatibleVersions (#9943) 2019-08-12 15:25:28 -07:00
ScriptHelp.Tests.ps1 Support multi-line code blocks in examples (#10776) 2019-11-15 17:24:16 -08:00
ScriptHelp.Tests.xml
Scripting.Followup.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
SuppressAnsiEscapeSequence.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
SwitchParallel.Tests.ps1 Mark -parallel and -throttlelimit reserved for foreach and switch statements (#10328) 2019-08-15 14:41:41 -07:00
TestsOnWinFullOnly.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
Trap.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
TryCatch.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00