'cd +' adds the ability to revert 'cd -' by having another bounded stack with the same limit for 'redo' actions. Behaviour is similar to back/forward navigation in explorer.exe When the location is set to a path and the redo stack is non-empty then the redo stack gets flushed. When cd + happens, then the redo stack is pushed to as well for a more intuitive way of navigating backwards and forwards. All the work is done of course on the Set-location cmdlet, which is aliased to cd on all platforms. |
||
---|---|---|
.. | ||
csharp.tests.csproj | ||
README.md | ||
test_Binders.cs | ||
test_CorePsPlatform.cs | ||
test_ExtensionMethods.cs | ||
test_FileSystemProvider.cs | ||
test_MshSnapinInfo.cs | ||
test_PSConfiguration.cs | ||
test_PSVersionInfo.cs | ||
test_Runspace.cs | ||
test_SecuritySupport.cs | ||
test_SessionState.cs | ||
test_Utils.cs |
xUnit Tests
These tests are completely Linux specific.
Every test class must belong to
[Collection("AssemblyLoadContext")]
. This ensures that PowerShell's
AssemblyLoadContext is initialized before any other code is executed.
When this is not the case, late initialization fails with
System.InvalidOperationException : Binding model is already locked for the AppDomain and cannot be reset.
Having every class in the same collection is as close to an xUnit global init hook as can be done.
Running xUnit Tests
Go to the top level of the PowerShell repository and run:
Start-PSxUnit
inside a self-hosted copy of PowerShell.