From 719c9fd5f3f862f3722e672d9e46359db42be363 Mon Sep 17 00:00:00 2001 From: JumpingYang001 Date: Tue, 14 Jun 2016 21:27:48 -0700 Subject: [PATCH] Update fix for Get-Member Pester Test --- test/powershell/Get-Member.Tests.ps1 | 6 +----- test/powershell/Update-TypeData.Tests.ps1 | 9 --------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/test/powershell/Get-Member.Tests.ps1 b/test/powershell/Get-Member.Tests.ps1 index 61bf93cd73..5419f9bd5c 100644 --- a/test/powershell/Get-Member.Tests.ps1 +++ b/test/powershell/Get-Member.Tests.ps1 @@ -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 = @() diff --git a/test/powershell/Update-TypeData.Tests.ps1 b/test/powershell/Update-TypeData.Tests.ps1 index 4c4f0e0471..4d3fce80ac 100644 --- a/test/powershell/Update-TypeData.Tests.ps1 +++ b/test/powershell/Update-TypeData.Tests.ps1 @@ -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 {