mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Consolidate GetUserName code
Once .NET Core 1.1 becomes available, we can likely remove the entirety of CorePsExtensions.cs.
This commit is contained in:
1 parent
3f9889d6da
commit
a8416d7b30
5 files changed
+34
-39
No files matched your search
@@ -34,7 +34,7 @@ namespace PSTests
|
||||
// The process should return an exit code of 0 on success
|
||||
Assert.Equal(0, process.ExitCode);
|
||||
// It should be the same as what our platform code returns
|
||||
Assert.Equal(username, Platform.NonWindowsGetUserName());
|
||||
Assert.Equal(username, Platform.Unix.UserName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user