PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility
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 Remove Unicode BOM from text files (#11546) 2020-01-11 12:15:34 +05:00
Add-Member.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Add-Type.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
alias.tests.ps1 Avoid variable names that conflict with automatic variables (#11392) 2019-12-20 12:09:03 -08:00
Clear-Variable.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
clixml.tests.ps1 Avoid variable names that conflict with automatic variables (#11392) 2019-12-20 12:09:03 -08:00
command.tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Compare-Object.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
ConvertFrom-Csv.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
ConvertFrom-Json.Tests.ps1 ConvertFrom-Json: Unwrap Collections by default (#10861) 2019-11-14 16:41:00 -08:00
ConvertFrom-SddlString.ps1 Improve powershell startup time (#8341) 2018-12-02 12:52:39 -08:00
ConvertFrom-StringData.Tests.ps1 Fix stringdata test to correctly validate keys of hashtables (#10810) 2019-10-23 10:37:48 +05:00
ConvertTo-Csv.Tests.ps1 Add QuoteFields parameter to ConvertTo-Csv and Export-Csv (#9132) 2019-04-05 22:19:01 +05:00
ConvertTo-Html.Tests.ps1 Allow 'name' as an alias key for 'label' in ConvertTo-Html, allow the 'width' entry to be an integer (#8426) 2019-01-18 11:02:22 -08:00
ConvertTo-Json.Tests.ps1 Make ConvertTo-Json treat [AutomationNull]::Value and [NullString]::Value as $null (#10957) 2019-11-05 14:32:52 -08:00
ConvertTo-SecureString.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
ConvertTo-Xml.Tests.ps1 Style fixes for ConvertTo-Xml tests (#9036) 2019-03-05 11:39:58 -08:00
Debug-Runspace.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
Enable-RunspaceDebug.Tests.ps1 New New-PSBreakpoint cmdlet & new -Breakpoint parameter for Debug-Runspace (#8923) 2019-04-13 19:14:53 -07:00
Environment-Variables.Tests.ps1 Fix EnvironmentVariable test and add missing null check in CommandHelpProvider (#8408) 2018-12-11 14:20:22 -08:00
Eventing.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Export-Alias.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Export-Csv.Tests.ps1 Add UseQuotes parameter (#8951) 2019-03-06 11:59:15 -08:00
Export-FormatData.Tests.ps1 Pretty print Export-FormatData XML output (#6691) 2018-04-24 10:04:42 +05:00
Foreach-Object-Parallel.Tests.ps1 Make approved features non-experimental (#11303) 2019-12-10 15:41:43 -08:00
Format-Custom.Tests.ps1 Revert "Update formatter to not write newlines if content is empty (#11193)" (#11342) 2019-12-18 00:53:19 +05:00
Format-Hex.Tests.ps1 Format-Hex: Improve mixed-collection piped input and piped streams of input (#8674) 2019-10-15 11:04:45 -07:00
Format-List.Tests.ps1 Normalize line endings before comparing string in tests (#11499) 2020-01-08 13:33:28 -08:00
Format-Table.Tests.ps1 Normalize line endings before comparing string in tests (#11499) 2020-01-08 13:33:28 -08:00
Format-Wide.Tests.ps1 Fix error when 'Format-Wide -AutoSize | Out-String' is called. (#6491) 2018-04-03 11:17:05 -07:00
Get-Alias.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Get-Command.Tests.ps1 Correct pwsh run (#11486) 2020-01-05 12:17:41 +05:00
Get-Culture.Tests.ps1 $PSCulture follows CurrentThread.CurrentCulture (#10138) 2019-10-07 14:17:11 +05:00
Get-Date.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Get-Error.Tests.ps1 Make approved features non-experimental (#11303) 2019-12-10 15:41:43 -08:00
Get-Event.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-EventSubscriber.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-FileHash.Tests.ps1 Write an error if argument is a directory in Get-FileHash cmdlet (#11114) 2019-11-21 15:15:19 +05:00
Get-FormatData.Tests.ps1 Fix test failing when UnixStat feature is disabled (#11370) 2019-12-20 15:32:50 -08:00
Get-Host.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-Member.Tests.ps1 Fix tab completion for parameters so that it shows common parameters as available (#10850) 2019-10-31 13:09:37 -07:00
Get-PSBreakpoint.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-PSCallStack.Tests.ps1 Fix regression in Get-PSCallStack (#11210) 2019-12-02 10:43:35 -08:00
Get-Random.Tests.ps1 Remove [ValidateNotNullOrEmpty] from -InputObject on Get-Random to allow empty string (#10644) 2019-10-01 04:32:43 +00:00
Get-RunspaceDebug.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-TraceSource.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-UICulture.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-Unique.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-Uptime.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Get-Variable.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Get-Verb.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Group-Object.Tests.ps1 Group-Object - Use Case-Sensitive Hashtable for -CaseSensitive -AsHashtable (#11030) 2019-11-13 09:16:45 +05:00
Implicit.Remoting.Tests.ps1 Support using non-compatible Windows PowerShell modules in PowerShell Core (#10973) 2019-11-18 10:44:55 -08:00
Import-Alias.Tests.ps1 Added more tests for import-alias by file regarding parsing difficult aliases strings (#9247) 2019-04-11 10:40:24 -07:00
Import-Csv.Tests.ps1 Fix LiteralPath in Import-Csv to bind to Get-ChildItem output (#8277) 2019-01-09 18:49:15 +05:00
Import-LocalizedData.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
ImportExportCSV.Delimiter.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
Invoke-Expression.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Invoke-Item.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Join-String.Tests.ps1 Make Join-String -InputObject 1,2,3 result equal to 1,2,3 | Join-String result (#8611) 2019-01-24 12:53:37 -08:00
Json.Tests.ps1 Port PowerShell to .NET Core 3.0 (#9597) 2019-05-21 13:43:51 +08:00
JsonObject.Tests.ps1 Add configurable maximum depth in ConvertFrom-Json with -Depth (#8199) 2019-02-20 10:37:37 +05:00
MarkdownCmdlets.Tests.ps1 Multiple test fixes and improved logging for fragile tests (#9569) 2019-05-10 10:56:12 -07:00
Measure-Command.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Measure-Object.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
MiscCmdletUpdates.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
New-Alias.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
New-Event.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
New-Guid.Tests.ps1 Align name schemes for test files (#9034) 2019-03-05 10:47:04 -08:00
New-Object.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
New-TemporaryFile.Tests.ps1 Align name schemes for test files (#9034) 2019-03-05 10:47:04 -08:00
New-TimeSpan.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
New-Variable.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
object.tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Out-File.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Out-String.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
PowerShellData.tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Read-Host.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Register-EngineEvent.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Register-ObjectEvent.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Remove-Alias.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Remove-Event.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Remove-PSBreakpoint.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Remove-TypeData.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Remove-Variable.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
RunspaceCmdlets.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Select-Object.Tests.ps1 Fix command runtime so StopUpstreamCommandsException doesn't get populated in -ErrorVariable (#10840) 2019-10-22 16:38:32 -07:00
Select-String.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Select-Xml.Tests.ps1 Style fixes for Select-Xml tests (#9037) 2019-03-05 15:07:00 -08:00
Send-MailMessage.Tests.ps1 Pin version of netDumbster to 2.0.0.4 (#9748) 2019-05-28 14:40:03 -07:00
Set-Alias.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Set-Date.Tests.ps1 Add Linux VSTS CI (#7527) 2018-08-14 16:23:50 -07:00
Set-PSBreakpoint.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Set-Variable.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Sort-Object.Tests.ps1 Add -Stable to Sort-Object and related tests (#7862) 2019-01-15 17:14:39 -08:00
Start-Sleep.Tests.ps1 Improve Start-Sleep cmdlet to accept fractional seconds (#8537) 2019-01-14 10:04:44 -08:00
string.tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Tee-Object.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
Test-Json.Tests.ps1 Avoid variable names that conflict with automatic variables (#11392) 2019-12-20 12:09:03 -08:00
Test-Mocks.ps1
Trace-Command.Tests.ps1 Remove use of cmdlet aliases from .\test\powershell (#8546) 2018-12-28 13:48:23 +05:00
typedata.tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Unblock-File.Tests.ps1 Add Unblock-File for macOS (#11137) 2019-12-02 17:51:36 -08:00
Unimplemented-Cmdlet.Tests.ps1 Add Unblock-File for macOS (#11137) 2019-12-02 17:51:36 -08:00
Update-FormatData.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Update-List.Tests.ps1 Add back Update-List command (#10922) 2019-10-30 11:05:30 -07:00
Update-TypeData.Tests.ps1 Allow root node of format.ps1xml to have attributes that are ignored (#7987) 2018-10-12 11:31:21 -07:00
Wait-Debugger.Tests.ps1 Add support to ActionPreference.Break to break into debugger (#8205) 2019-08-23 10:34:10 -07:00
Wait-Event.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
WebCmdlets.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Write-Debug.Tests.ps1 Debug parameter now sets debugpreference to continue (#8195) 2018-11-30 19:46:51 +05:00
Write-Error.Tests.ps1 Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
Write-Host.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Write-Output.Tests.ps1 Fix -NoEnumerate behaviour in Write-Output (#9069) 2019-03-13 13:54:12 +05:00
Write-Progress.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
Write-Stream.Tests.ps1 Fix ConciseView to show Activity instead of myCommand (#11007) 2019-11-10 16:21:10 +05:00
Write-Verbose.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in modules: Microsoft.PowerShell.Utility and Microsoft.WSMan.Management. (#6366) 2018-03-23 10:26:23 -07:00
XMLCommand.Tests.ps1 Revise use of Start-Sleep cmdlet (#8633) 2019-01-15 12:31:52 +05:00