update encoding on the test files - these are ascii

This commit is contained in:
James Truher committed 2016-08-02 12:05:24 -07:00
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" {
$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
#
@@ -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
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
#
@@ -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 {
# note, we will not use "," as that's the default for CSV
$delimiters = "/", " ", "@", "#", "$", "\", "&", "(", ")",
@@ -1,4 +1,4 @@
Describe "GetDateFormatUpdates" -Tags "Feature" {
Describe "GetDateFormatUpdates" -Tags "Feature" {
It "Verifies that FileDate format works" {
$date = Get-Date
@@ -1,4 +1,4 @@
Describe "New-Guid" -Tags "CI" {
Describe "New-Guid" -Tags "CI" {
It "returns a 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
#
@@ -69,57 +69,16 @@ Describe "Json Tests" -Tags "Feature" {
It "Convertto-Json should handle Enum based on Int64" {
# Test follow-up for bug Win8: 378368 Convertto-Json problems with Enum based on Int64.
$src = @"
namespace Bug378368
{
public enum TestEnum : ulong
{
One = 1,
Two = 2
}
enum TestEnum : ulong { One = 1, Two = 2 }
enum TestEnum1 : long { One = 1, Two = 2 }
enum TestEnum2 : int { One = 1, Two = 2 }
public enum TestEnum1 : long
{
One = 1,
Two = 2
}
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
class Test {
[TestEnum] $TestEnum = [TestEnum]::One
[TestEnum1] $TestEnum1 = [TestEnum1]::Two
[TestEnum2] $TestEnum2 = [TestEnum2]::One
}
$op = [Test]::New() | convertto-json | convertfrom-json
$op.TestEnum | Should Be "One"
$op.TestEnum1 | Should Be "Two"
$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" {
@@ -1,4 +1,4 @@
Describe "Alias tests" -Tags "CI" {
Describe "Alias tests" -Tags "CI" {
BeforeAll {
$testPath = Join-Path testdrive:\ ("testAlias\[.test")
@@ -1,4 +1,4 @@
Describe "CliXml test" -Tags "CI" {
Describe "CliXml test" -Tags "CI" {
BeforeAll {
$testFilePath = Join-Path "testdrive:\" "testCliXml"
@@ -1,4 +1,4 @@
Describe "Trace-Command" -tags "Feature" {
Describe "Trace-Command" -tags "Feature" {
Context "Listner options" {
BeforeAll {
@@ -1,4 +1,4 @@
Describe "FormatData" -tags "Feature" {
Describe "FormatData" -tags "Feature" {
Context "Export" {
It "can export all types" {
@@ -1,4 +1,4 @@
Describe "Object cmdlets" -Tags "CI" {
Describe "Object cmdlets" -Tags "CI" {
Context "Group-Object" {
It "AsHashtable returns a hashtable" {
$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" {
BeforeAll {
$sep = [io.path]::DirectorySeparatorChar
@@ -1,4 +1,4 @@
Describe "XML cmdlets" -Tags "Feature" {
Describe "XML cmdlets" -Tags "Feature" {
Context "Select-XML" {
BeforeAll {
$fileName = New-Item -Path 'TestDrive:\testSelectXml.xml'