removed first 3 lines of autogenerated code- it was superfluous

This commit is contained in:
Zachary Folwick
2015-07-21 16:25:27 -07:00
parent fbfd1707c8
commit c714e7b3ee
10 changed files with 53 additions and 61 deletions
@@ -1,8 +1,4 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Environment-Variables" {
Describe "Test-Environment-Variables" {
It "Should have environment variable" {
Get-Item ENV: | Should Not BeNullOrEmpty
}
+28 -32
View File
@@ -1,41 +1,37 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Get-Alias" {
Describe "Get-Alias" {
It "Should have a return type of System.Array when gal returns more than one object" {
$val1=(Get-Alias a*)
$val2=(Get-Alias c*)
$i=0
$val1=(Get-Alias a*)
$val2=(Get-Alias c*)
$i=0
$val1 | ForEach-Object{ $i++};
if($i -lt 2) {
$val1.GetType().BaseType.FullName | Should Be "System.Management.Automation.CommandInfo"
}
else {
$val1.GetType().BaseType.FullName | Should Be "System.Array"
}
$val1 | ForEach-Object{ $i++};
if($i -lt 2) {
$val1.GetType().BaseType.FullName | Should Be "System.Management.Automation.CommandInfo"
}
else {
$val1.GetType().BaseType.FullName | Should Be "System.Array"
}
$val2 | ForEach-Object{ $i++};
if($i -lt 2) {
$val2.GetType().BaseType.FullName | Should Be "System.Management.Automation.CommandInfo"
}
else {
$val2.GetType().BaseType.FullName | Should Be "System.Array"
}
$val2 | ForEach-Object{ $i++};
if($i -lt 2) {
$val2.GetType().BaseType.FullName | Should Be "System.Management.Automation.CommandInfo"
}
else {
$val2.GetType().BaseType.FullName | Should Be "System.Array"
}
}
}
It "should return an array of 3 objects" {
$val = Get-Alias a*
$alias = gal a*
It "should return an array of 3 objects" {
$val = Get-Alias a*
$alias = gal a*
$val.CommandType | Should Not BeNullOrEmpty
$val.Name | Should Not BeNullOrEmpty
$val.ModuleName | Should BeNullOrEmpty
$val.CommandType | Should Not BeNullOrEmpty
$val.Name | Should Not BeNullOrEmpty
$val.ModuleName | Should BeNullOrEmpty
$alias.CommandType | Should Not BeNullOrEmpty
$alias.Name | Should Not BeNullOrEmpty
$alias.ModuleName | Should BeNullOrEmpty
$alias.CommandType | Should Not BeNullOrEmpty
$alias.Name | Should Not BeNullOrEmpty
$alias.ModuleName | Should BeNullOrEmpty
}
}
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-ChildItem" {
It "Should list the contents of the current folder" {
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-Content" {
It "Should throw an error on a directory " {
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-Date" {
<#
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-Item" {
It "Should list all the items in the current working directory when asterisk is used" {
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-Location aka pwd" {
<#Dependencies:
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Get-Member" {
It "Should be able to be called on string objects, ints, arrays, etc" {
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "New-Object" {
It "should create an object with 4 fields" {
+3 -3
View File
@@ -1,6 +1,6 @@
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here/$sut"
Describe "Test-Split-Path" {
<#