PowerShell/test/powershell/Host
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
..
assets Need explicit -command to execute command in Read-Host output test (#4103) 2017-06-28 10:13:37 -07:00
TabCompletion Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Base-Directory.Tests.ps1 [feature] (#7101) 2018-06-27 10:26:37 +05:00
ConsoleHost.Tests.ps1 Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00
HostUtilities.Tests.ps1 Fix tests running in Azure DevOps (#8220) 2018-11-09 15:11:02 -08:00
Logging.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
PSVersionTable.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
Read-Host.Tests.ps1 Multiple test fixes and improved logging for fragile tests (#9569) 2019-05-10 10:56:12 -07:00
ScreenReader.Tests.ps1 Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00
Startup.Tests.ps1 Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00