PowerShell/test/powershell/Language/Classes
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
..
MSFT_778492.psm1 Add new test files to Language directory 2016-07-20 12:10:12 -07:00
ProtectedAccess.Tests.ps1 Language tests now run clean on Linux 2016-07-20 12:10:12 -07:00
Scripting.Classes.Attributes.Tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Scripting.Classes.BasicParsing.Tests.ps1 Fix error position reporting on classes (#3103) 2017-02-13 16:45:00 -08:00
Scripting.Classes.Break.Tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Scripting.Classes.Exceptions.Tests.ps1 Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
scripting.Classes.inheritance.tests.ps1 Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Scripting.Classes.MiscOps.Tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Scripting.Classes.Modules.Tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
scripting.Classes.NestedModules.tests.ps1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
scripting.Classes.using.tests.ps1 Fix error position reporting on classes (#3103) 2017-02-13 16:45:00 -08:00
scripting.enums.tests.ps1 Fix error position reporting on classes (#3103) 2017-02-13 16:45:00 -08:00