Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a05fffd

Browse files
author
Sergei Vorobev
committed
Add a minishell clixml tests
1 parent e1db642 commit a05fffd

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Minishell is a powershell concept.
2+
# It's primare use-case is when somebody executes a scriptblock in the new powershell process.
3+
# The objects are automatically marshelled back to the parent session, so users can avoid custom
4+
# serialization to pass objects between two processes.
5+
6+
Describe 'minishell for native executables' -Tag 'CI' {
7+
8+
BeforeAll {
9+
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
10+
}
11+
12+
It 'gets a hashtable object from minishell' {
13+
$output = & powershell { @{'a' = 'b'} }
14+
($output | measure).Count | Should Be 1
15+
($output.GetType().Name) | Should Be 'Hashtable'
16+
$output['a'] | Should Be 'b'
17+
}
18+
}

0 commit comments

Comments
 (0)