# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe 'Tests for setting $? for execution success' -Tag 'CI' { BeforeAll { $script:hookValues = [System.Collections.Generic.List[bool]]::new() function Hook { param([Parameter(Position = 0)][bool]$Value) $script:hookValues.Add($Value) } } AfterEach { $script:hookValues.Clear() } It 'Sets $? for case ''