Update fix for Get-Member Pester Test

This commit is contained in:
JumpingYang001
2016-06-14 21:27:48 -07:00
parent bd61c5e88d
commit 719c9fd5f3
2 changed files with 1 additions and 14 deletions
+1 -5
View File
@@ -88,10 +88,6 @@ Describe "Get-Member DRT Unit Tests" -Tags DRT {
yearsInMS = value;
}
}
public void GetEmployee() {}
public void SetEmployee() {}
public Employee(string firstName, string lastName, int yearsInMS)
{
@@ -175,7 +171,7 @@ Describe "Get-Member DRT Unit Tests" -Tags DRT {
It 'Get the Public Methods of "Employee" object' {
$emps = [Employee]::New("john", "smith", 5), [Employee]::New("joesph", "smith", 15), [Employee]::New("john", "smyth", 2)
$methodList = "GetHashCode", "Equals", "ToString", "GetEmployee", "SetEmployee", "GetType"
$methodList = "GetHashCode", "Equals", "ToString", "GetType"
$results = $emps | Get-Member -MemberType Method
$results.Length | Should Be $methodList.Length
$methodFound = @()
@@ -1,12 +1,3 @@
Describe "Update-TypeData" {
Context "Validate Update-Type updates correctly" {
It "Should not throw upon reloading previous formatting file" {
{ Update-TypeData } | Should Not throw
}
}
}
Describe "Update-TypeData basic functionality" -Tags DRT{
BeforeAll {