summaryrefslogtreecommitdiff
path: root/tests/src/CoreMangLib
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-08-10 14:16:48 -0700
committerwtgodbe <wigodbe@microsoft.com>2016-08-11 14:24:17 -0700
commit3394c212371569e6c909da839823d1e069f23a0a (patch)
treec097ae97e47c2c43b72573ad4477a7aa79e9d5cf /tests/src/CoreMangLib
parent555cf28517a6fb1c151b80cf3fa93d71d0aacc9f (diff)
downloadcoreclr-3394c212371569e6c909da839823d1e069f23a0a.tar.gz
coreclr-3394c212371569e6c909da839823d1e069f23a0a.tar.bz2
coreclr-3394c212371569e6c909da839823d1e069f23a0a.zip
Fix region info test on Debian
Diffstat (limited to 'tests/src/CoreMangLib')
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoCurrentRegion.csproj49
-rw-r--r--tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfocurrentregion.cs58
2 files changed, 0 insertions, 107 deletions
diff --git a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoCurrentRegion.csproj b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoCurrentRegion.csproj
deleted file mode 100644
index 5f2f8fdfbf..0000000000
--- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/RegionInfoCurrentRegion.csproj
+++ /dev/null
@@ -1,49 +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="regioninfocurrentregion.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="app.config" />
- <None Include="project.json" />
- </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/regioninfocurrentregion.cs b/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfocurrentregion.cs
deleted file mode 100644
index 84100b085f..0000000000
--- a/tests/src/CoreMangLib/cti/system/globalization/regioninfo/regioninfocurrentregion.cs
+++ /dev/null
@@ -1,58 +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.CurrentRegion
-/// </summary>
-public class RegionInfoCurrentRegion
-{
- public static int Main()
- {
- RegionInfoCurrentRegion regInfoCurrentRegion = new RegionInfoCurrentRegion();
- TestLibrary.TestFramework.BeginTestCase("RegionInfoCurrentRegion");
- if (regInfoCurrentRegion.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;
- return retVal;
- }
- #region PositiveTest
- public bool PosTest1()
- {
- bool retVal = true;
- TestLibrary.TestFramework.BeginScenario("PosTest1:Return the CurrentRegion property in RegionInfo class");
- try
- {
- RegionInfo regionInfo = RegionInfo.CurrentRegion;
-
- if (!regionInfo.Equals(new RegionInfo(TestLibrary.Utilities.CurrentCulture.Name)))
- {
- TestLibrary.TestFramework.LogError("001", "the ExpectResult is RegionInfo about " + TestLibrary.Utilities.CurrentCulture.Name + " but the ActualResult is " + regionInfo.ToString());
- retVal = false;
- }
- }
- catch (Exception e)
- {
- TestLibrary.TestFramework.LogError("002", "Unexpect exception:" + e);
- retVal = false;
- }
- return retVal;
- }
- #endregion
-} \ No newline at end of file