Remove commented out test code
authorStephen Toub <stoub@microsoft.com>
Mon, 4 Nov 2019 13:48:24 +0000 (08:48 -0500)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2019 13:48:24 +0000 (08:48 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/372063c6129e3994fe5866cb5962504278a91650

src/libraries/System.Data.Common/tests/System/Data/ForeignKeyConstraintTest.cs

index 9e25f03..69be51e 100644 (file)
@@ -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<NullReferenceException>(() => table2.Constraints.Add(fkc));
 
             // Try to add columns with names which do not exist in the table