b930eeef9f
- The Get-Process cmdlet on OS X has issues due to permissions - The Get-Process test in NativeLinuxCommands should have been removed - The ProcessName property has the same bug that has been fixed on Linux
18 lines
616 B
PowerShell
18 lines
616 B
PowerShell
Describe "NativeLinuxCommands" {
|
|
It "Should return a type of System.Object for hostname cmdlet" {
|
|
(hostname).GetType().BaseType | Should Be 'System.Object'
|
|
(hostname).GetType().Name | Should Be String
|
|
}
|
|
|
|
It "Should find Application grep" -Skip:$IsWindows {
|
|
(get-command grep).CommandType | Should Be Application
|
|
}
|
|
|
|
It "Should pipe to grep and get result" -Skip:$IsWindows {
|
|
"hello world" | grep hello | Should Be "hello world"
|
|
}
|
|
|
|
It "Should find Application touch" -Skip:$IsWindows {
|
|
(get-command touch).CommandType | Should Be Application
|
|
}
|
|
}
|