diff options
Diffstat (limited to 'tests/src/CoreMangLib/cti/system/globalization/regioninfo')
14 files changed, 0 insertions, 1137 deletions
diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoEquals.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoEquals.csproj deleted file mode 100644 index 857841b57c..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoEquals.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfoequals.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoGetHashCode.csproj deleted file mode 100644 index 500f7dbb4d..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoGetHashCode.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfogethashcode.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoISOCurrencySymbol.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoISOCurrencySymbol.csproj deleted file mode 100644 index 9c1f5e5957..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoISOCurrencySymbol.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfoisocurrencysymbol.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoIsMetric.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoIsMetric.csproj deleted file mode 100644 index eeef871514..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoIsMetric.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfoismetric.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoName.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoName.csproj deleted file mode 100644 index 19bada9ae4..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoName.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfoname.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoToString.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoToString.csproj deleted file mode 100644 index a0d8a95ab1..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoToString.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfotostring.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoTwoLetterISORegionName.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoTwoLetterISORegionName.csproj deleted file mode 100644 index 4140d72bf3..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoTwoLetterISORegionName.csproj +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="regioninfotwoletterisoregionname.cs" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - <ProjectReference Include="../../../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoequals.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoequals.cs deleted file mode 100644 index df14b135b2..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoequals.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.Equals(Object) -/// </summary> -public class RegionInfoEquals -{ - public static int Main() - { - RegionInfoEquals regInfoEquals = new RegionInfoEquals(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoEquals"); - if (regInfoEquals.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - // The RegionInfo constructor will disallow partial names - retVal = PosTest4() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Compare two RegionInfo object 1"); - try - { - RegionInfo regionInfo1 = new RegionInfo("en-US"); - RegionInfo regionInfo2 = new RegionInfo("en-US"); - bool boolVal = regionInfo1.Equals(regionInfo2); - if (!boolVal) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is true but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Compare two RegionInfo object 2"); - try - { - RegionInfo regionInfo1 = new RegionInfo("en-US"); - RegionInfo regionInfo2 = new RegionInfo("zh-CN"); - bool boolVal = regionInfo1.Equals(regionInfo2); - if (boolVal) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is false but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() // The RegionInfo constructor will disallow partial names - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Compare two RegionInfo object 3"); - try - { - RegionInfo regionInfo1 = new RegionInfo("US"); - RegionInfo regionInfo2 = new RegionInfo("en-US"); - bool boolVal = regionInfo1.Equals(regionInfo2); - if (boolVal) - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is false but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:RegionInfo object compared with not RegionInfo object"); - try - { - RegionInfo regionInfo1 = new RegionInfo("en-US"); - object objVal = new object(); - bool boolVal = regionInfo1.Equals(objVal); - if (boolVal) - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is false but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfogethashcode.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfogethashcode.cs deleted file mode 100644 index 119f94b9f1..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfogethashcode.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.GetHashCode() -/// </summary> -public class RegionInfoGetHashCode -{ - public static int Main() - { - RegionInfoGetHashCode regInfoGetHashCode = new RegionInfoGetHashCode(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoGetHashCode"); - if (regInfoGetHashCode.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Get the hash code of the RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - int hashCode = regionInfo.GetHashCode(); - if (hashCode != regionInfo.Name.GetHashCode()) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is" + regionInfo.Name.GetHashCode() +"but the ActualResult is " + hashCode); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Get the hash code of the RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - int hashCode = regionInfo.GetHashCode(); - if (hashCode != regionInfo.Name.GetHashCode()) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is" + regionInfo.Name.GetHashCode() +"but the ActualResult is " + hashCode); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -} diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoismetric.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoismetric.cs deleted file mode 100644 index b89c74b29e..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoismetric.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.IsMetric -/// </summary> -public class RegionInfoIsMetric -{ - public static int Main() - { - RegionInfoIsMetric regInfoIsMetric = new RegionInfoIsMetric(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoIsMetric"); - if (regInfoIsMetric.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Return the property IsMetric in RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - bool boolVal = regionInfo.IsMetric; - if (boolVal) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is false but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Return the property IsMetric in RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - bool boolVal = regionInfo.IsMetric; - if (!boolVal) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is false but the ActualResult is " + boolVal.ToString()); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoisocurrencysymbol.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoisocurrencysymbol.cs deleted file mode 100644 index 47a7e0d0b2..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoisocurrencysymbol.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.ISOCurrencySymbol [v-minch] -/// </summary> -public class RegionInfoISOCurrencySymbol -{ - public static int Main() - { - RegionInfoISOCurrencySymbol regInfoISOCurrencySymbol = new RegionInfoISOCurrencySymbol(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoISOCurrencySymbol"); - if (regInfoISOCurrencySymbol.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Return the property ISOCurrencySymbol in RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - string strISOCurrency = regionInfo.ISOCurrencySymbol; - if (strISOCurrency != "USD") - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is USD but the ActualResult is (" + strISOCurrency +")"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Return the property ISOCurrencySymbol in RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - string strISOCurrency = regionInfo.ISOCurrencySymbol; - if (strISOCurrency != "CNY") - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is CNY but the ActualResult is (" + strISOCurrency +")"); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Return the property ISOCurrencySymbol in RegionInfo object 3"); - try - { - RegionInfo regionInfo = new RegionInfo("de-DE"); - string strISOCurrency = regionInfo.ISOCurrencySymbol; - // On an older OS which does not have the right uptodate information, we can report DEM as the currency for German - if (TestLibrary.Utilities.IsVistaOrLater) - { - if (strISOCurrency != "EUR") - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is EUR but the ActualResult is (" + strISOCurrency + ")"); - retVal = false; - } - } - else - { - if (strISOCurrency != "EUR" && strISOCurrency != "DEM") - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is EUR or DEM but the ActualResult is (" + strISOCurrency + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:Return the property ISOCurrencySymbol in RegionInfo object 4"); - try - { - RegionInfo regionInfo = new RegionInfo("it-IT"); - string strISOCurrency = regionInfo.ISOCurrencySymbol; - // On an older OS which does not have the right uptodate information, we can report ITL as the currency for Italian - if (TestLibrary.Utilities.IsVistaOrLater) - { - if (strISOCurrency != "EUR") - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is EUR but the ActualResult is (" + strISOCurrency + ")"); - retVal = false; - } - } - else - { - if (strISOCurrency != "EUR" && strISOCurrency != "ITL") - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is EUR or ITL but the ActualResult is (" + strISOCurrency + ")"); - retVal = false; - } - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoname.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoname.cs deleted file mode 100644 index 3b6dfa0c17..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfoname.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.Name [v-minch] -/// </summary> -public class RegionInfoName -{ - public static int Main() - { - RegionInfoName regInfoName = new RegionInfoName(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoName"); - if (regInfoName.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest1() && retVal; - // The constructor will disallow partial names - //retVal = PosTest3() && retVal; - //retVal = PosTest4() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Return the property Name in RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - string strName = regionInfo.Name; - if (strName != "US") - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is en-US but the ActualResult is " + strName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Return the property Name in RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - string strName = regionInfo.Name; - if (strName != "CN") - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is ZH-CN but the ActualResult is " + strName); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() // The constructor will disallow partial names - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Return the property Name in RegionInfo object 3"); - try - { - RegionInfo regionInfo = new RegionInfo("US"); - string strName = regionInfo.Name; - if (strName != "US") - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is US but the ActualResult is " + strName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() // The constructor will disallow partial names - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:Return the property Name in RegionInfo object 4"); - try - { - RegionInfo regionInfo = new RegionInfo("CN"); - string strName = regionInfo.Name; - if (strName != "CN") - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is CN but the ActualResult is " + strName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotostring.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotostring.cs deleted file mode 100644 index bf3b90d31e..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotostring.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.ToString() -/// </summary> -public class RegionInfoToString -{ - public static int Main() - { - RegionInfoToString regInfoToString = new RegionInfoToString(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoToString"); - if (regInfoToString.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest1() && retVal; - retVal = PosTest3() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Invoke the method ToString in RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - string strVal = regionInfo.ToString(); - if (strVal != regionInfo.Name) - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is" + regionInfo.Name + "but the ActualResult is" + strVal); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Invoke the method ToString in RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - string strVal = regionInfo.ToString(); - if (strVal != regionInfo.Name) - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is" + regionInfo.Name + "but the ActualResult is" + strVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Invoke the method ToString in RegionInfo object 3"); - try - { - RegionInfo regionInfo = new RegionInfo("en-IE"); - string strVal = regionInfo.ToString(); - if (strVal != regionInfo.Name) - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is" + regionInfo.Name + "but the ActualResult is" + strVal); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotwoletterisoregionname.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotwoletterisoregionname.cs deleted file mode 100644 index bec7ad3814..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfotwoletterisoregionname.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -using System; -using System.Globalization; -/// <summary> -/// RegionInfo.TwoLetterISORegionName [v-minch] -/// </summary> -public class RegionInfoTwoLetterISORegionName -{ - public static int Main() - { - RegionInfoTwoLetterISORegionName regInfoTwoLetterISOName = new RegionInfoTwoLetterISORegionName(); - TestLibrary.TestFramework.BeginTestCase("RegionInfoTwoLetterISORegionName"); - if (regInfoTwoLetterISOName.RunTests()) - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("PASS"); - return 100; - } - else - { - TestLibrary.TestFramework.EndTestCase(); - TestLibrary.TestFramework.LogInformation("FAIL"); - return 0; - } - } - public bool RunTests() - { - bool retVal = true; - TestLibrary.TestFramework.LogInformation("[Positive]"); - retVal = PosTest1() && retVal; - retVal = PosTest2() && retVal; - retVal = PosTest3() && retVal; - retVal = PosTest4() && retVal; - return retVal; - } - #region PositiveTest - public bool PosTest1() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest1:Return the property TwoLetterISORegionName in RegionInfo object 1"); - try - { - RegionInfo regionInfo = new RegionInfo("en-US"); - string strTwoLetterName = regionInfo.TwoLetterISORegionName; - if (strTwoLetterName != "US") - { - TestLibrary.TestFramework.LogError("001", "the ExpectResult is US but the ActualResult is " + strTwoLetterName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest2:Return the property TwoLetterISORegionName in RegionInfo object 2"); - try - { - RegionInfo regionInfo = new RegionInfo("zh-CN"); - string strTwoLetterName = regionInfo.TwoLetterISORegionName; - if (strTwoLetterName != "CN") - { - TestLibrary.TestFramework.LogError("003", "the ExpectResult is CN but the ActualResult is " + strTwoLetterName); - retVal = false; - } - } - catch (ArgumentException) - { - TestLibrary.TestFramework.LogInformation("The East Asian Languages are not installed. Skipping test(s)"); - retVal = true; - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest3() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest3:Return the property TwoLetterISORegionName in RegionInfo object 3"); - try - { - RegionInfo regionInfo = new RegionInfo("de-DE"); - string strTwoLetterName = regionInfo.TwoLetterISORegionName; - if (strTwoLetterName != "DE") - { - TestLibrary.TestFramework.LogError("005", "the ExpectResult is DE but the ActualResult is " + strTwoLetterName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest4() - { - bool retVal = true; - TestLibrary.TestFramework.BeginScenario("PosTest4:Return the property TwoLetterISORegionName in RegionInfo object 4"); - try - { - RegionInfo regionInfo = new RegionInfo("it-IT"); - string strTwoLetterName = regionInfo.TwoLetterISORegionName; - if (strTwoLetterName != "IT") - { - TestLibrary.TestFramework.LogError("007", "the ExpectResult is IT but the ActualResult is " + strTwoLetterName); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008", "Unexpect exception:" + e); - retVal = false; - } - return retVal; - } - #endregion -}
\ No newline at end of file |