Skip to content

Several copies of identical tests in Measure-Object.Tests.ps1 #12682

@sethvs

Description

@sethvs

There are several copies (some 3, and some 4) of identical tests in Measure-Object.Tests.ps1.

For example:

It "Measure-Object ScriptBlock properties should be able to transform input" {
$map = @{ one = 1; two = 2; three = 3 }
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]}
$result.Sum | Should -Be 6
}

It "Measure-Object ScriptBlock properties should be able to transform input" {
$map = @{ one = 1; two = 2; three = 3 }
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]}
$result.Sum | Should -Be 6
}

It "Measure-Object ScriptBlock properties should be able to transform input" {
$map = @{ one = 1; two = 2; three = 3 }
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]}
$result.Sum | Should -Be 6
}

It "Measure-Object ScriptBlock properties should be able to transform input" {
$map = @{ one = 1; two = 2; three = 3 }
$result = "one", "two", "three" | Measure-Object -Sum {$map[$_]}
$result.Sum | Should -Be 6
}

Do we need them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aWG-Quality-Testissues in a test or in test infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions