mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update fix for Get-Member Pester Test
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user