PowerShell/test/powershell/Modules
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
..
CimCmdlets Support the pipeline chain operators && and || in PowerShell language (#9849) 2019-10-17 14:43:46 -07:00
Microsoft.PowerShell.Core Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.PowerShell.Diagnostics Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.Powershell.Host Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00
Microsoft.PowerShell.LocalAccounts Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.PowerShell.Management Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.PowerShell.Security Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.PowerShell.Utility Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Microsoft.WSMan.Management Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
PackageManagement Use https in URLs where available (#8622) 2019-01-24 12:50:11 -08:00
PowerShellGet Added RequireSudoOnUnix tags to PowerShellGet tests and unmark as pending (#8954) 2019-03-05 11:55:20 -08:00
PSDesiredStateConfiguration Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
PSDiagnostics Adding tests for PSDiagnostics Module (#8431) 2019-01-16 14:59:35 -08:00
PSReadLine Update tests to account for when $PSHOME is readonly (#9279) 2019-04-04 23:01:01 -07:00
ThreadJob Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00