mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Added test to validate that fields are getting populated
This commit is contained in:
@@ -12,4 +12,14 @@
|
||||
It "Should be able to use the ls alias" {
|
||||
$(ls .).Name.Length | Should Be $(Get-ChildItem .).Name.Length
|
||||
}
|
||||
|
||||
It "Should have a the proper fields and be populated" {
|
||||
$var = Get-Childitem .
|
||||
|
||||
$var.Name.Length | Should BeGreaterThan 0
|
||||
$var.Mode.Length | Should BeGreaterThan 0
|
||||
$var.LastWriteTime | Should BeGreaterThan 0
|
||||
$var.Length.Length | Should BeGreaterThan 0
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user