From 1b4276f56306eed1172fd08bbb41d6c0fa8f330a Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Mon, 28 Dec 2015 10:39:36 -0800 Subject: [PATCH] Added test to validate that fields are getting populated --- src/pester-tests/Get-ChildItem.Tests.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pester-tests/Get-ChildItem.Tests.ps1 b/src/pester-tests/Get-ChildItem.Tests.ps1 index cf92b11be3..52f50f58ae 100644 --- a/src/pester-tests/Get-ChildItem.Tests.ps1 +++ b/src/pester-tests/Get-ChildItem.Tests.ps1 @@ -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 + + } }