Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/ControlTestHelper.cs =================================================================== diff -u -r2d014f7589947c4c9e34140b42687e496ee04c5f -r373e1f071d233dc36d360e9904fa6718af742200 --- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/ControlTestHelper.cs (.../ControlTestHelper.cs) (revision 2d014f7589947c4c9e34140b42687e496ee04c5f) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/ControlTestHelper.cs (.../ControlTestHelper.cs) (revision 373e1f071d233dc36d360e9904fa6718af742200) @@ -38,7 +38,7 @@ /// The form to get the control from. /// The name of the control. /// The found control. - /// Thrown when is null or empty. + /// Thrown when is null or empty. public static DataGridViewControl GetDataGridViewControl(Form form, string controlName) { return GetControls(form, controlName).FirstOrDefault(); @@ -50,7 +50,7 @@ /// The control to get the nested control from. /// The name of the control. /// The found control. - /// Thrown when is null or empty. + /// Thrown when is null or empty. public static DataGridView GetDataGridView(Control control, string controlName) { return GetControls(control, controlName).FirstOrDefault(); @@ -62,10 +62,10 @@ /// The control to get the nested control from. /// The name of the controls. /// The found controls. - /// Thrown when is null or empty. + /// Thrown when is null or empty. public static IEnumerable GetControls(Control control, string controlName) where TView : Control { - return control.Controls.Find(controlName, true).Cast(); + return control.Controls.Find(controlName, true).OfType(); } } } \ No newline at end of file