Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1db642 commit a05fffdCopy full SHA for a05fffd
1 file changed
test/powershell/Language/Scripting/NativeExecution/NativeMinishell.Tests.ps1
@@ -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