Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/StructureSelectionDialogTest.cs =================================================================== diff -u -re59a92bdf530c0f3522a25253350f6f6f593ddbd -rd1622350f2155131233440de093850e3e7a4459f --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/StructureSelectionDialogTest.cs (.../StructureSelectionDialogTest.cs) (revision e59a92bdf530c0f3522a25253350f6f6f593ddbd) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/StructureSelectionDialogTest.cs (.../StructureSelectionDialogTest.cs) (revision d1622350f2155131233440de093850e3e7a4459f) @@ -22,7 +22,6 @@ using System; using System.Linq; using System.Windows.Forms; -using Core.Common.Base.Geometry; using Core.Common.Controls.DataGrid; using NUnit.Extensions.Forms; using NUnit.Framework; @@ -67,17 +66,14 @@ [Test] public void Constructor_WithParentAndSurfaceLines_DefaultProperties() { - // Setup + // Setup & Call using (var viewParent = new Form()) + using (var dialog = new StructureSelectionDialog(viewParent, Enumerable.Empty())) { - // Call - using (var dialog = new StructureSelectionDialog(viewParent, Enumerable.Empty())) - { - // Assert - Assert.IsInstanceOf>(dialog); - Assert.IsEmpty(dialog.SelectedItems); - Assert.AreEqual("Selecteer kunstwerken", dialog.Text); - } + // Assert + Assert.IsInstanceOf>(dialog); + Assert.IsEmpty(dialog.SelectedItems); + Assert.AreEqual("Selecteer kunstwerken", dialog.Text); } } @@ -133,6 +129,5 @@ Assert.AreEqual(testname, (string) dataGridViewControl.Rows[0].Cells[nameColumnIndex].Value); } } - } } \ No newline at end of file