Remove test 366085 (#25277)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 20 Jun 2019 16:30:15 +0000 (18:30 +0200)
committerJan Kotas <jkotas@microsoft.com>
Thu, 20 Jun 2019 16:30:15 +0000 (09:30 -0700)
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change #25185 modified
that string to just "Parameter".

We also have a coverage for this in corefx tests, so I am removing
this test.

tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs [deleted file]
tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.csproj [deleted file]

diff --git a/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs b/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs
deleted file mode 100644 (file)
index 7b15c6a..0000000
+++ /dev/null
@@ -1,41 +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.Threading;
-
-public class MainClass
-{      
-       static public int Main(String[] args)
-       {
-               int returnCode = 99;
-               
-               try
-               {
-                       Convert.FromBase64String(null);
-               }
-               catch (ArgumentNullException e)
-               {
-                       Console.WriteLine("Caught ArgumentNullException");
-            Console.WriteLine(e.Message);
-                       // the error message may be in the debug pack
-                       if (((e.Message.IndexOf("Value cannot be null.") >= 0 && e.Message.IndexOf("Parameter name:") >= 0) ||
-                               (e.Message.IndexOf("[ArgumentNull_Generic]") >= 0)))
-                               returnCode = 100;                       
-               }
-               catch (Exception e)
-               {
-                       Console.WriteLine("Caught wrong Exception: " + e.Message);
-                       returnCode = 98;
-               }
-
-               if (returnCode == 100)
-                       Console.WriteLine("Test PASSED");
-               else
-                       Console.WriteLine("Test FAILED");
-               return returnCode;
-       }
-
-}
-
-
diff --git a/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.csproj b/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.csproj
deleted file mode 100644 (file)
index 91dd208..0000000
+++ /dev/null
@@ -1,36 +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>
-    <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
-    <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
-    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-    <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="366085.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
-  </ItemGroup>
-  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-  <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
-  </PropertyGroup>
-</Project>
\ No newline at end of file