From b1ea5ede9393be013477d270b3496e868b8bae20 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Thu, 20 Jun 2019 18:30:15 +0200 Subject: [PATCH] Remove test 366085 (#25277) 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. --- .../regressions/whidbeybeta2/366085/366085.cs | 41 ---------------------- .../regressions/whidbeybeta2/366085/366085.csproj | 36 ------------------- 2 files changed, 77 deletions(-) delete mode 100644 tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs delete mode 100644 tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.csproj 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 index 7b15c6a..0000000 --- a/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.cs +++ /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 index 91dd208..0000000 --- a/tests/src/baseservices/exceptions/regressions/whidbeybeta2/366085/366085.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Debug - AnyCPU - 2.0 - {95DFC527-4DC1-495E-97D7-E94EE1F7140D} - Exe - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - ..\..\ - true - BuildAndRun - 1 - - - - - - - - - False - - - - - - - - - - - - - \ No newline at end of file -- 2.7.4