diff options
Diffstat (limited to 'tests/src/CoreMangLib/cti/system/globalization/textinfo')
14 files changed, 0 insertions, 1442 deletions
diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoCultureName.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoCultureName.csproj deleted file mode 100644 index 490e931df9..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoCultureName.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="textinfoculturename.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/textinfo/TextInfoEquals.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoEquals.csproj deleted file mode 100644 index b3785d2b9c..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoEquals.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="textinfoequals.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/textinfo/TextInfoGetHashCode.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoGetHashCode.csproj deleted file mode 100644 index f3df729358..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoGetHashCode.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="textinfogethashcode.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/textinfo/TextInfoIsReadOnly.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoIsReadOnly.csproj deleted file mode 100644 index 23de89ae51..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoIsReadOnly.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="textinfoisreadonly.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/textinfo/TextInfoToString.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToString.csproj deleted file mode 100644 index 90dc881304..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToString.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="textinfotostring.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/textinfo/TextInfoToUpper1.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper1.csproj deleted file mode 100644 index a1ab434288..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper1.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="textinfotoupper1.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/textinfo/TextInfoToUpper2.csproj b/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper2.csproj deleted file mode 100644 index 2ba47808f6..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/TextInfoToUpper2.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="textinfotoupper2.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/textinfo/textinfoculturename.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoculturename.cs deleted file mode 100644 index 7d094f80a4..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoculturename.cs +++ /dev/null @@ -1,104 +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> -/// System.Globalization.TextInfo.CultureName -/// </summary> -public class TextInfoCultureName -{ - public static int Main() - { - TextInfoCultureName testObj = new TextInfoCultureName(); - TestLibrary.TestFramework.BeginTestCase("for Property:System.Globalization.TextInfo.CultureInfo"); - - if (testObj.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 PositiveTesting - public bool PosTest1() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest1: Verify the en-US TextInfo"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - CultureInfo ci = new CultureInfo("en-US"); - TextInfo textInfoUS = ci.TextInfo; - String cultureName = ci.Name; - try - { - - if (cultureName != textInfoUS.CultureName) - { - string errorDesc = "Value is not " + cultureName + " as expected: Actual(" + textInfoUS.CultureName + ")"; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest2: Verify the fr-FR CultureInfo's TextInfo"; - const string c_TEST_ID = "P002"; - - - CultureInfo ci = new CultureInfo("fr-FR"); - TextInfo textInfoFrance = ci.TextInfo; - String cultureName = ci.Name; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (cultureName != textInfoFrance.CultureName) - { - string errorDesc = "Value is not " + cultureName + " as expected: Actual(" + textInfoFrance.CultureName + ")"; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoequals.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoequals.cs deleted file mode 100644 index ca7dae7f7f..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoequals.cs +++ /dev/null @@ -1,243 +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> -/// System.Globalization.TextInfo.Equals(Object) -/// </summary> -public class TextInfoEquals -{ - - private int c_MINI_STRING_LENGTH = 8; - private int c_MAX_STRING_LENGTH = 256; - - public static int Main() - { - TextInfoEquals testObj = new TextInfoEquals(); - TestLibrary.TestFramework.BeginTestCase("for Method:System.Globalization.TextInfo.Equals(Object)"); - - if (testObj.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; - retVal = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - return retVal; - } - - #region PositiveTesting - public bool PosTest1() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest1: Verify same culture TextInfo equals original TextInfo. "; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - CultureInfo ci = new CultureInfo("en-US"); - CultureInfo ci2 = new CultureInfo("en-US"); - object textInfo = ci2.TextInfo; - - try - { - - if (!ci.TextInfo.Equals(textInfo)) - { - string errorDesc = "the second TextInfo should equal original TextInfo."; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest2: Verify the TextInfo is not same CultureInfo's . "; - const string c_TEST_ID = "P002"; - - - TextInfo textInfoFrance = new CultureInfo("fr-FR").TextInfo; - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoFrance.Equals((object)textInfoUS)) - { - string errorDesc = "the TextInfos of differente CultureInfo should not equal. "; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest3: Verify the TextInfo not equal a null reference . "; - const string c_TEST_ID = "P003"; - - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoUS.Equals(null)) - { - string errorDesc = "the US CultureInfo's TextInfo should not equal a null reference. "; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest4: Verify the TextInfo not equal another type object . "; - const string c_TEST_ID = "P004"; - - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - object obj = (object)(new MyClass()); - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoUS.Equals(obj)) - { - string errorDesc = "the US CultureInfo's TextInfo should not equal user-defined type object. "; - TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest5: Verify the TextInfo not equal a int object . "; - const string c_TEST_ID = "P005"; - - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - int i = TestLibrary.Generator.GetInt32(-55); - object intObject = i as object; - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoUS.Equals(intObject)) - { - string errorDesc = "the US CultureInfo's TextInfo should not equal int object. "; - TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest6: Verify the TextInfo not equal a string object . "; - const string c_TEST_ID = "P006"; - - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - String str = TestLibrary.Generator.GetString(-55, false,c_MINI_STRING_LENGTH,c_MAX_STRING_LENGTH); - object strObject = str as object; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoUS.Equals(strObject)) - { - string errorDesc = "the US CultureInfo's TextInfo should not equal string object. "; - TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion - - #region Customer Class - public class MyClass - { - - } - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfogethashcode.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfogethashcode.cs deleted file mode 100644 index f6cf23af91..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfogethashcode.cs +++ /dev/null @@ -1,108 +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> -/// System.Globalization.TextInfo.GetHashCode() -/// </summary> -public class TextInfoGetHashCode -{ - public static int Main() - { - TextInfoGetHashCode testObj = new TextInfoGetHashCode(); - TestLibrary.TestFramework.BeginTestCase("for Method:System.Globalization.TextInfo.GetHashCode()"); - - if (testObj.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 PositiveTesting - public bool PosTest1() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest1: Verify the TextInfo equals original TextInfo. "; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - CultureInfo ci = new CultureInfo("en-US"); - CultureInfo ci2 = new CultureInfo("en-US"); - object textInfo = ci2.TextInfo; - - try - { - int originalHC = ci.TextInfo.GetHashCode(); - int clonedHC = (textInfo as TextInfo).GetHashCode(); - if (originalHC != clonedHC) - { - string errorDesc = "the cloned TextInfo'HashCode should equal original TextInfo's HashCode."; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest2: Verify the TextInfo is not same CultureInfo's . "; - const string c_TEST_ID = "P002"; - - - TextInfo textInfoFrance = new CultureInfo("fr-FR").TextInfo; - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - int franceHashCode = textInfoFrance.GetHashCode(); - int usHashCode = textInfoUS.GetHashCode(); - if (franceHashCode == usHashCode) - { - string errorDesc = "the differente TextInfo's HashCode should not equal. "; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoisreadonly.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoisreadonly.cs deleted file mode 100644 index f0d9eb1c84..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfoisreadonly.cs +++ /dev/null @@ -1,103 +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> -/// System.Globalization.TextInfo.IsReadOnly -/// </summary> -public class TextInfoIsReadOnly -{ - public static int Main() - { - TextInfoIsReadOnly testObj = new TextInfoIsReadOnly(); - TestLibrary.TestFramework.BeginTestCase("for Property:System.Globalization.TextInfo.IsReadOnly"); - - if (testObj.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 PositiveTesting - public bool PosTest1() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest1: Verify the new TextInfo is not readOnly"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - CultureInfo ci = new CultureInfo("en-US"); - TextInfo textInfoUS = ci.TextInfo; - - try - { - - if (textInfoUS.IsReadOnly) - { - string errorDesc = "Value is not true as expected: Actual is false"; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest2: Verify the fr-FR CultureInfo's TextInfo"; - const string c_TEST_ID = "P002"; - - - CultureInfo ci = new CultureInfo("fr-FR"); - TextInfo textInfoFrance = ci.TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textInfoFrance.IsReadOnly) - { - string errorDesc = "Value is not true as expected: Actual is false"; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotostring.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotostring.cs deleted file mode 100644 index 27064abb32..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotostring.cs +++ /dev/null @@ -1,102 +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> -/// System.Globalization.TextInfo.ToString() -/// </summary> -public class TextInfoToString -{ - public static int Main() - { - TextInfoToString testObj = new TextInfoToString(); - TestLibrary.TestFramework.BeginTestCase("for Method:System.Globalization.TextInfo.ToString()"); - - if (testObj.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 PositiveTesting - public bool PosTest1() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest1: Verify the en-US TextInfo"; - const string c_TEST_ID = "P001"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - String textinfoStr = "TextInfo - en-US"; - try - { - - if (textinfoStr != textInfoUS.ToString()) - { - string errorDesc = "Value is not " + textinfoStr + " as expected: Actual(" + textInfoUS.ToString() + ")"; - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - const string c_TEST_DESC = "PosTest2: Verify the fr-FR CultureInfo's TextInfo"; - const string c_TEST_ID = "P002"; - - - TextInfo textInfoFrance = new CultureInfo("fr-FR").TextInfo; - String textinfoStr = "TextInfo - fr-FR"; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - if (textinfoStr != textInfoFrance.ToString()) - { - string errorDesc = "Value is not " + textinfoStr + " as expected: Actual(" + textInfoFrance.ToString() + ")"; - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper1.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper1.cs deleted file mode 100644 index d87eac576f..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper1.cs +++ /dev/null @@ -1,223 +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> -/// System.Globalization.TextInfo.ToUpper(Char) -/// </summary> -public class TextInfoToUpper1 -{ - public static int Main() - { - TextInfoToUpper1 testObj = new TextInfoToUpper1(); - - TestLibrary.TestFramework.BeginTestCase("for method: System.Globalization.TextInfo.ToUpper(Char)"); - if (testObj.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; - retVal = PosTest5() && retVal; - - return retVal; - } - - public bool PosTest1() - { - bool retVal = true; - - const string c_TEST_ID = "P001"; - const string c_TEST_DESC = "PosTest1: uppercase character"; - string errorDesc; - - char ch = 'A'; - char expectedChar = ch; - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - - char actualChar = textInfo.ToUpper(ch); - if (actualChar != expectedChar) - { - errorDesc = string.Format("Uppercase of character \\u{0:x} is not the value ", (int)ch); - errorDesc += string.Format("\\u{0:x} as expected: actual(\\u{1:x}", (int)expectedChar, (int)actualChar); - TestLibrary.TestFramework.LogError("001" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("002" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - - public bool PosTest2() - { - bool retVal = true; - - const string c_TEST_ID = "P002"; - const string c_TEST_DESC = "PosTest2: lowercase character"; - string errorDesc; - - char ch = 'a'; - char expectedChar = 'A'; - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - - char actualChar = textInfo.ToUpper(ch); - if (actualChar != expectedChar) - { - errorDesc = string.Format("Uppercase of character \\u{0:x} is not the value ", (int)ch); - errorDesc += string.Format("\\u{0:x} as expected: actual(\\u{1:x}", (int)expectedChar, (int)actualChar); - TestLibrary.TestFramework.LogError("003" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("004" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - - const string c_TEST_ID = "P003"; - const string c_TEST_DESC = "PosTest3: non-alphabetic character"; - string errorDesc; - - char ch = Convert.ToChar(TestLibrary.Generator.GetInt16(-55) % 10 + '0'); - char expectedChar = ch; - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - - char actualChar = textInfo.ToUpper(ch); - if (actualChar != expectedChar) - { - errorDesc = string.Format("Uppercase of character \\u{0:x} is not the value ", (int)ch); - errorDesc += string.Format("\\u{0:x} as expected: actual(\\u{1:x}", (int)expectedChar, (int)actualChar); - TestLibrary.TestFramework.LogError("005" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("006" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - - public bool PosTest4() - { - bool retVal = true; - - const string c_TEST_ID = "P004"; - const string c_TEST_DESC = "PosTest4: uppercase character and TextInfo is french CultureInfo's"; - string errorDesc; - - char ch = 'G'; - char expectedChar = ch; - TextInfo textInfo = new CultureInfo("fr-FR").TextInfo; - - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - - char actualChar = textInfo.ToUpper(ch); - if (actualChar != expectedChar) - { - errorDesc = string.Format("Uppercase of character \\u{0:x} is not the value ", (int)ch); - errorDesc += string.Format("\\u{0:x} as expected: actual(\\u{1:x}", (int)expectedChar, (int)actualChar); - TestLibrary.TestFramework.LogError("007" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("008" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - - const string c_TEST_ID = "P005"; - const string c_TEST_DESC = "PosTest5: lowercase character and TextInfo is french(France) CultureInfo's"; - string errorDesc; - - char ch = 'g'; - char expectedChar = 'G'; - TextInfo textInfo = new CultureInfo("fr-FR").TextInfo; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - try - { - - char actualChar = textInfo.ToUpper(ch); - if (actualChar != expectedChar) - { - errorDesc = string.Format("Uppercase of character \\u{0:x} is not the value ", (int)ch); - errorDesc += string.Format("\\u{0:x} as expected: actual(\\u{1:x}", (int)expectedChar, (int)actualChar); - TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - } - catch (Exception e) - { - errorDesc = "Unexpected exception: " + e; - TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, errorDesc); - retVal = false; - } - - return retVal; - } - -} - diff --git a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper2.cs b/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper2.cs deleted file mode 100644 index ff385637d3..0000000000 --- a/tests/src/CoreMangLib/cti/system/globalization/textinfo/textinfotoupper2.cs +++ /dev/null @@ -1,244 +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> -/// System.Globalization.TextInfo.ToUpper(String) -/// </summary> -public class TextInfoToUpper2 -{ - public static int Main() - { - TextInfoToUpper2 stu1 = new TextInfoToUpper2(); - TestLibrary.TestFramework.BeginTestCase("for Method:System.Globalization.TextInfo.ToUpper(String)"); - - if (stu1.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 = PosTest5() && retVal; - retVal = PosTest6() && retVal; - - TestLibrary.TestFramework.LogInformation("[Negative]"); - retVal = NegTest1() && retVal; - retVal = NegTest2() && retVal; - - return retVal; - } - - #region PositiveTesting - public bool PosTest1() - { - bool retVal = true; - string strA = "HelloWorld!"; - string ActualResult; - - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario("PosTest1: normal string ToUpper"); - try - { - ActualResult = textInfo.ToUpper(strA); - if (ActualResult != "HELLOWORLD!") - { - TestLibrary.TestFramework.LogError("001", "normal string ToUpper ActualResult is not the ExpectResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - public bool PosTest2() - { - bool retVal = true; - string strA = string.Empty; - string ActualResult; - - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - - TestLibrary.TestFramework.BeginScenario("PosTest2: empty string ToUpper"); - try - { - ActualResult = textInfo.ToUpper(strA); - if (ActualResult != string.Empty) - { - TestLibrary.TestFramework.LogError("003", "empty string ToUpper ActualResult is not the ExpectResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("004", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest3() - { - bool retVal = true; - string strA = "Hello\n\0World\u0009!"; - string ActualResult; - - TextInfo textInfo = new CultureInfo("en-US").TextInfo; - - TestLibrary.TestFramework.BeginScenario("PosTest3: normal string with special symbols '\u0009' and '\0'"); - try - { - - ActualResult = textInfo.ToUpper(strA); - if (ActualResult != "HELLO\n\0WORLD\t!") - { - TestLibrary.TestFramework.LogError("005", "normal string with special symbols ToUpper ActualResult is not the ExpectResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("006", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest5() - { - bool retVal = true; - string strA = "HelloWorld!"; - string ActualResult; - - TextInfo textInfo = new CultureInfo("fr-FR").TextInfo; - - TestLibrary.TestFramework.BeginScenario("PosTest1: normal string ToUpper and TextInfo is French (France) CultureInfo's"); - try - { - ActualResult = textInfo.ToUpper(strA); - if (ActualResult != "HELLOWORLD!") - { - TestLibrary.TestFramework.LogError("009", "normal string ToUpper ActualResult is not the ExpectResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - - public bool PosTest6() - { - bool retVal = true; - string strA = "Hello\n\0World\u0009!"; - string ActualResult; - - TextInfo textInfo = new CultureInfo("fr-FR").TextInfo; - - TestLibrary.TestFramework.BeginScenario("PosTest6: normal string with special symbols and TextInfo is French (France) CultureInfo's"); - try - { - - ActualResult = textInfo.ToUpper(strA); - if (ActualResult != "HELLO\n\0WORLD\t!") - { - TestLibrary.TestFramework.LogError("011", "normal string with special symbols ToUpper ActualResult is not the ExpectResult"); - retVal = false; - } - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012", "Unexpected exception:" + e); - retVal = false; - } - return retVal; - } - #endregion - - #region NegativeTests - public bool NegTest1() - { - bool retVal = true; - - const string c_TEST_DESC = "NegTest1: The string is a null reference"; - const string c_TEST_ID = "N001"; - - TextInfo textInfoUS = new CultureInfo("en-US").TextInfo; - string str = null; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - textInfoUS.ToUpper(str); - TestLibrary.TestFramework.LogError("009" + " TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected."); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("010" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - - public bool NegTest2() - { - bool retVal = true; - - const string c_TEST_DESC = "NegTest2: The string is a null reference and TextInfo is French (France) CultureInfo's"; - const string c_TEST_ID = "N001"; - - TextInfo textInfoUS = new CultureInfo("fr-FR").TextInfo; - string str = null; - - TestLibrary.TestFramework.BeginScenario(c_TEST_DESC); - - try - { - textInfoUS.ToUpper(str); - TestLibrary.TestFramework.LogError("011" + " TestId-" + c_TEST_ID, "ArgumentNullException is not thrown as expected."); - retVal = false; - } - catch (ArgumentNullException) - { - } - catch (Exception e) - { - TestLibrary.TestFramework.LogError("012" + " TestId-" + c_TEST_ID, "Unexpected exception: " + e); - retVal = false; - } - - return retVal; - } - #endregion -} - |