Skip to content

Commit 80547da

Browse files
Add a test
1 parent b24b0b5 commit 80547da

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
# In future, we will add more tests to be executed in Constrained Language Mode.
5+
Describe "Test UserAgentInfo" {
6+
It "GetUserString returns a non-null, non-empty string" {
7+
$userAgentString = [Microsoft.PowerShell.PSResourceGet.InternalHooks]::GetUserString()
8+
$userAgentString | Should -Not -BeNullOrEmpty
9+
}
10+
}

0 commit comments

Comments
 (0)