Commit graph

8 commits

Author SHA1 Message Date
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
Jason Shirk
02b5f357a2 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
Yanbing Wang
c5b90ca656 fixed indentation 2016-09-02 13:28:20 -07:00
Yanbing Wang
11e279d688 Update based on PR feedback 2016-09-02 11:07:18 -07:00
Yanbing Wang
08d65596cd removed the first 3 lines in i18n.Tests.ps1 2016-08-30 12:17:27 -07:00
Yanbing Wang
04f225a4a1 Update i18n.Testsps1 to use PSDefaultParameterValues 2016-08-29 17:54:20 -07:00
Yanbing Wang
bbbd6a9dfc Change some context to it 2016-08-26 19:37:51 -07:00
Yanbing Wang
312ec5ffd0 Add Tests for parsing, international, and script help. 2016-08-26 14:49:44 -07:00