From 39ec56a3fc43d311979d9bbffbc273ed6d6cd263 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Mon, 4 Nov 2019 08:48:24 -0500 Subject: [PATCH] Remove commented out test code Commit migrated from https://github.com/dotnet/corefx/commit/372063c6129e3994fe5866cb5962504278a91650 --- .../tests/System/Data/ForeignKeyConstraintTest.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libraries/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs b/src/libraries/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs index 9e25f03..69be51e 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs @@ -208,15 +208,6 @@ namespace System.Data.Tests constraints[2] = fkc; // Try to add the constraint to ConstraintCollection of the DataTable through Add() - //try - //{ - // table2.Constraints.Add(fkc); - // throw new ApplicationException("An Exception was expected"); - //} - // spec says InvalidConstraintException but throws this - //catch (NullReferenceException) - //{ - //} Assert.Throws(() => table2.Constraints.Add(fkc)); // Try to add columns with names which do not exist in the table -- 2.7.4