System.Data.Tests.DataRowCollectionTest.Find_DoesntThrowWithNullObjectInArray C# (CSharp) Method

Find_DoesntThrowWithNullObjectInArray() private method

private Find_DoesntThrowWithNullObjectInArray ( ) : void
return void
        public void Find_DoesntThrowWithNullObjectInArray()
        {
            var dt = new DataTable("datatable");

            var column = new DataColumn();
            dt.Columns.Add(column);
            var columns = new DataColumn[] { column };
            dt.PrimaryKey = columns;

            try
            {
                Assert.Equal(null, dt.Rows.Find(new object[] { null }));
            }
            catch (IndexOutOfRangeException)
            {
                Assert.False(true);
            }
        }