Fix Path.GetPathRoot wrong check in Unix (#35734)
authorCarlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com>
Wed, 13 May 2020 19:24:01 +0000 (12:24 -0700)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 19:24:01 +0000 (12:24 -0700)
commit61c658183231100a5836e833c86446ff51a4654b
tree5e736dbbbb076515f1bda4b11fed8e1632f4e51f
parent9386d507e4459ecc41c4e959828c599c7788dd54
Fix Path.GetPathRoot wrong check in Unix (#35734)

* Fix Path.GetPathRoot wrong check in Unix

* Return .Empty instead of null

* Update src/libraries/System.Private.CoreLib/src/System/IO/Path.Unix.cs

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Address unit test comments

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/IO/Path.Unix.cs
src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests.cs
src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Unix.cs