mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
update encoding on the test files - these are ascii
This commit is contained in:
1 parent
7b836f99f5
commit
dd0291be09
18 files changed
+25
-66
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
Describe "History cmdlet test cases" -Tags "CI" {
|
Describe "History cmdlet test cases" -Tags "CI" {
|
||||||
|
|
||||||
It "Tests Invoke-History on a cmdlet that generates output on all streams" {
|
It "Tests Invoke-History on a cmdlet that generates output on all streams" {
|
||||||
$streamSpammer = '
|
$streamSpammer = '
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This is a Pester test suite to validate Copy-Item remotely using a remote session.
|
# This is a Pester test suite to validate Copy-Item remotely using a remote session.
|
||||||
#
|
#
|
||||||
# Copyright (c) Microsoft Corporation, 2015
|
# Copyright (c) Microsoft Corporation, 2015
|
||||||
#
|
#
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# Tests related to TFS item 1370133 [PSUpgrade] Need -NoNewline parameter on Out-File, Add-Content and Set-Content
|
# Tests related to TFS item 1370133 [PSUpgrade] Need -NoNewline parameter on Out-File, Add-Content and Set-Content
|
||||||
# Connect request https://connect.microsoft.com/PowerShell/feedback/details/524739/need-nonewline-parameter-on-out-file-add-content-and-set-content
|
# Connect request https://connect.microsoft.com/PowerShell/feedback/details/524739/need-nonewline-parameter-on-out-file-add-content-and-set-content
|
||||||
|
|
||||||
Describe "Tests for -NoNewline parameter of Out-File, Add-Content and Set-Content" -tags "Feature" {
|
Describe "Tests for -NoNewline parameter of Out-File, Add-Content and Set-Content" -tags "Feature" {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This is a Pester test suite to validate the Format-Hex cmdlet in the Microsoft.PowerShell.Utility module.
|
# This is a Pester test suite to validate the Format-Hex cmdlet in the Microsoft.PowerShell.Utility module.
|
||||||
#
|
#
|
||||||
# Copyright (c) Microsoft Corporation, 2015
|
# Copyright (c) Microsoft Corporation, 2015
|
||||||
#
|
#
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
Describe "Using delimiters with Export-CSV and Import-CSV behave correctly" -tags "Feature" {
|
Describe "Using delimiters with Export-CSV and Import-CSV behave correctly" -tags "Feature" {
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
# note, we will not use "," as that's the default for CSV
|
# note, we will not use "," as that's the default for CSV
|
||||||
$delimiters = "/", " ", "@", "#", "$", "\", "&", "(", ")",
|
$delimiters = "/", " ", "@", "#", "$", "\", "&", "(", ")",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "GetDateFormatUpdates" -Tags "Feature" {
|
Describe "GetDateFormatUpdates" -Tags "Feature" {
|
||||||
|
|
||||||
It "Verifies that FileDate format works" {
|
It "Verifies that FileDate format works" {
|
||||||
$date = Get-Date
|
$date = Get-Date
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "New-Guid" -Tags "CI" {
|
Describe "New-Guid" -Tags "CI" {
|
||||||
|
|
||||||
It "returns a new guid" {
|
It "returns a new guid" {
|
||||||
$guid = New-Guid
|
$guid = New-Guid
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This is a Pester test suite to validate the New-TemporaryFile cmdlet in the Microsoft.PowerShell.Utility module.
|
# This is a Pester test suite to validate the New-TemporaryFile cmdlet in the Microsoft.PowerShell.Utility module.
|
||||||
#
|
#
|
||||||
# Copyright (c) Microsoft Corporation, 2015
|
# Copyright (c) Microsoft Corporation, 2015
|
||||||
#
|
#
|
||||||
|
|||||||
+9
-50
@@ -69,57 +69,16 @@ Describe "Json Tests" -Tags "Feature" {
|
|||||||
It "Convertto-Json should handle Enum based on Int64" {
|
It "Convertto-Json should handle Enum based on Int64" {
|
||||||
|
|
||||||
# Test follow-up for bug Win8: 378368 Convertto-Json problems with Enum based on Int64.
|
# Test follow-up for bug Win8: 378368 Convertto-Json problems with Enum based on Int64.
|
||||||
$src = @"
|
enum TestEnum : ulong { One = 1, Two = 2 }
|
||||||
namespace Bug378368
|
enum TestEnum1 : long { One = 1, Two = 2 }
|
||||||
{
|
enum TestEnum2 : int { One = 1, Two = 2 }
|
||||||
public enum TestEnum : ulong
|
|
||||||
{
|
|
||||||
One = 1,
|
|
||||||
Two = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum TestEnum1 : long
|
class Test {
|
||||||
{
|
[TestEnum] $TestEnum = [TestEnum]::One
|
||||||
One = 1,
|
[TestEnum1] $TestEnum1 = [TestEnum1]::Two
|
||||||
Two = 2
|
[TestEnum2] $TestEnum2 = [TestEnum2]::One
|
||||||
}
|
}
|
||||||
|
$op = [Test]::New() | convertto-json | convertfrom-json
|
||||||
public enum TestEnum2 : int
|
|
||||||
{
|
|
||||||
One = 1,
|
|
||||||
Two = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Test
|
|
||||||
{
|
|
||||||
public TestEnum TestEnum
|
|
||||||
{
|
|
||||||
get { return testEnum; }
|
|
||||||
set { testEnum = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
private TestEnum testEnum = TestEnum.One;
|
|
||||||
|
|
||||||
public TestEnum1 TestEnum1
|
|
||||||
{
|
|
||||||
get { return testEnum1; }
|
|
||||||
set { testEnum1 = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
private TestEnum1 testEnum1 = TestEnum1.Two;
|
|
||||||
|
|
||||||
public TestEnum2 TestEnum2
|
|
||||||
{
|
|
||||||
get { return testEnum2; }
|
|
||||||
set { testEnum2 = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
private TestEnum2 testEnum2 = TestEnum2.One;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
"@
|
|
||||||
Add-Type $src
|
|
||||||
$op = new-object Bug378368.Test | convertto-json | convertfrom-json
|
|
||||||
$op.TestEnum | Should Be "One"
|
$op.TestEnum | Should Be "One"
|
||||||
$op.TestEnum1 | Should Be "Two"
|
$op.TestEnum1 | Should Be "Two"
|
||||||
$op.TestEnum2 | Should Be 1
|
$op.TestEnum2 | Should Be 1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "Tests for the Import-PowerShellDataFile cmdlet" -Tags "Feature" {
|
Describe "Tests for the Import-PowerShellDataFile cmdlet" -Tags "Feature" {
|
||||||
|
|
||||||
It "Validates error on a missing path" {
|
It "Validates error on a missing path" {
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "Alias tests" -Tags "CI" {
|
Describe "Alias tests" -Tags "CI" {
|
||||||
|
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
$testPath = Join-Path testdrive:\ ("testAlias\[.test")
|
$testPath = Join-Path testdrive:\ ("testAlias\[.test")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "CliXml test" -Tags "CI" {
|
Describe "CliXml test" -Tags "CI" {
|
||||||
|
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
$testFilePath = Join-Path "testdrive:\" "testCliXml"
|
$testFilePath = Join-Path "testdrive:\" "testCliXml"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "Trace-Command" -tags "Feature" {
|
Describe "Trace-Command" -tags "Feature" {
|
||||||
|
|
||||||
Context "Listner options" {
|
Context "Listner options" {
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "FormatData" -tags "Feature" {
|
Describe "FormatData" -tags "Feature" {
|
||||||
|
|
||||||
Context "Export" {
|
Context "Export" {
|
||||||
It "can export all types" {
|
It "can export all types" {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "Object cmdlets" -Tags "CI" {
|
Describe "Object cmdlets" -Tags "CI" {
|
||||||
Context "Group-Object" {
|
Context "Group-Object" {
|
||||||
It "AsHashtable returns a hashtable" {
|
It "AsHashtable returns a hashtable" {
|
||||||
$result = Get-Process | Group-Object -Property ProcessName -AsHashTable
|
$result = Get-Process | Group-Object -Property ProcessName -AsHashTable
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "String cmdlets" -Tags "CI" {
|
Describe "String cmdlets" -Tags "CI" {
|
||||||
Context "Select-String" {
|
Context "Select-String" {
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
$sep = [io.path]::DirectorySeparatorChar
|
$sep = [io.path]::DirectorySeparatorChar
|
||||||
|
|||||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
Describe "XML cmdlets" -Tags "Feature" {
|
Describe "XML cmdlets" -Tags "Feature" {
|
||||||
Context "Select-XML" {
|
Context "Select-XML" {
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
$fileName = New-Item -Path 'TestDrive:\testSelectXml.xml'
|
$fileName = New-Item -Path 'TestDrive:\testSelectXml.xml'
|
||||||
|
|||||||
Reference in new issue
Block a user