PowerShell/test/csharp
Christoph Bergmeister [MVP] 4bc22d92df Add support for 'cd +' (#7206)
'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.
2018-09-19 12:50:30 +05:00
..
csharp.tests.csproj Add xunit project to PowerShell.sln and make it runable from within VisualStudio (#7254) 2018-08-02 11:51:04 -07:00
README.md Update test documentation 2016-04-04 19:20:26 -07:00
test_Binders.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_CorePsPlatform.cs Cleanup NonWindowsGetDomainName() (#6948) 2018-05-31 10:18:33 +05:00
test_ExtensionMethods.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_FileSystemProvider.cs CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950) 2018-06-12 12:30:10 -07:00
test_MshSnapinInfo.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_PSConfiguration.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_PSVersionInfo.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_Runspace.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_SecuritySupport.cs CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950) 2018-06-12 12:30:10 -07:00
test_SessionState.cs Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
test_Utils.cs Add support for 'cd +' (#7206) 2018-09-19 12:50:30 +05:00

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.