PowerShell/test/powershell/Modules
Ilya 409ab7443f Fix GetType() bad pattern and related issues in tests (#3134)
* Fix GetType() bad pattern and related issues in tests

$var.GetType() can raise an exception in tests so we should check $var
before make the call. A large part of the tests does not make this
check.
I start with searching ".GetType()" but discovered many related issues
in tests (reduntant and unneeded tests, "throw" bad pattens, bugs,
formattings (sorry!) and so on) - I had to fix them too.

* Fix after code review
* Second wave of migration GetType() -> BeOfType
Removed 'GetType().Name' patterns.
2017-02-15 16:40:51 -08:00
..
CimCmdlets Added tests to close code coverage in CIM area (#2528) 2016-11-17 11:46:07 -08:00
Microsoft.PowerShell.Archive Small typo in archive cmdlets tests (#3121) 2017-02-10 13:39:34 -08:00
Microsoft.PowerShell.Core Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Microsoft.PowerShell.Diagnostics Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Microsoft.Powershell.Host Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Microsoft.PowerShell.LocalAccounts Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Microsoft.PowerShell.Management Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Microsoft.PowerShell.Security Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Microsoft.PowerShell.Utility Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
PackageManagement Jameswtruher/travisdaily2 (#2842) 2016-12-06 13:58:57 -08:00
PowerShellGet Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
PSDesiredStateConfiguration Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
PSReadLine
map.json