PowerShell/test
Ilya eb47c22339
Add custom 'Selected.*' type to PSCustomObject in Select-Object only once (#11548)
Before the fix Select-Object without parameters added custom 'Selected.' type to PSCustomObject even if this type was already present in TypeNames that was a memory leak in the edge case.
The cause of the problem was that Select-Object without parameters did not create a new object but forwarded the original.
The fix is to add custom 'Selected.' type only if object is original and it has not already custom 'Selected.*' type.
2020-01-25 14:10:39 +05:00
..
common/markdown Allow error 504 (Gateway Timeout) in markdown-link tests (#11439) 2020-01-06 12:18:20 -08:00
docker/networktest Correct case of $PSVersionTable special variable 2020-01-13 19:36:31 +00:00
hosting Generate the correct reference assembly for Microsoft.PowerShell.ConsoleHost NuGet package (#11545) 2020-01-13 15:58:02 -08:00
nanoserver Update pester syntax to v4 (#11544) 2020-01-11 20:41:59 +05:00
packaging/windows Correct case of $error special variable 2020-01-13 19:19:39 +00:00
powershell Add custom 'Selected.*' type to PSCustomObject in Select-Object only once (#11548) 2020-01-25 14:10:39 +05:00
shebang Reorganize tests 2016-01-14 17:00:06 -08:00
tools Correct case of $PSHOME special variable 2020-01-13 19:35:33 +00:00
xUnit Remove Unicode BOM from text files (#11546) 2020-01-11 12:15:34 +05:00
README.md Move xUnit tests in new folder (#8356) 2018-12-13 14:22:07 -08:00
Test.Common.props Move to .NET Core 3.1 preview 1 (#10798) 2019-10-18 16:49:25 -07:00

Testing

The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./xUnit. The third-party shebang test is in ./shebang.