Added test to validate that fields are getting populated

This commit is contained in:
Zachary Folwick
2015-12-28 10:39:36 -08:00
parent 05989fe455
commit 1b4276f563
+10
View File
@@ -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
}
}