PowerShell/test/powershell/Language/Parser
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
..
Ast.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
AutomaticVariables.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
BNotOperator.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
Conversions.Tests.ps1 Use the original precision (prior-dotnet-core-3) for double/fload-to-string conversion (#9893) 2019-06-19 08:56:43 +05:00
ExtensibleCompletion.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
LanguageAndParser.TestFollowup.Tests.ps1 Special case the posix locale in WildcardPattern (#10186) 2019-07-26 10:58:37 -07:00
LineContinuance.Tests.ps1 Support line continuance with pipe at the start of a line (#8938) 2019-05-13 22:57:57 -07:00
MethodInvocation.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in Language. (#6304) 2018-03-21 10:47:08 -07:00
ParameterBinding.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Parser.Tests.ps1 Cleanup Parser tests (#9792) 2019-06-24 11:22:54 -07:00
Parsing.Tests.ps1 Make null member access tests as string to avoid parsing errors (#11385) 2019-12-21 00:14:07 +00:00
RedirectionOperator.Tests.ps1 Add ConciseView for $ErrorView (#10641) 2019-10-04 16:52:57 -07:00
TypeAccelerator.Tests.ps1 Consolidation of all Windows PowerShell work ported to PSCore6 (#8257) 2018-11-13 16:16:29 -08:00
UsingAssembly.Tests.ps1 Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00
UsingNamespace.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00