Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/GrassCoverErosionInwardsDikeProfileSelectionDialogTest.cs =================================================================== diff -u -r7d790a82bda0347f47961162de614bacfa8e288c -r4e6c8ac0eb663ddfe4565745fb4829a8432019e2 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/GrassCoverErosionInwardsDikeProfileSelectionDialogTest.cs (.../GrassCoverErosionInwardsDikeProfileSelectionDialogTest.cs) (revision 7d790a82bda0347f47961162de614bacfa8e288c) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/GrassCoverErosionInwardsDikeProfileSelectionDialogTest.cs (.../GrassCoverErosionInwardsDikeProfileSelectionDialogTest.cs) (revision 4e6c8ac0eb663ddfe4565745fb4829a8432019e2) @@ -40,7 +40,6 @@ // Call using (var dialog = new GrassCoverErosionInwardsDikeProfileSelectionDialog(new Form(), Enumerable.Empty())) { - // Assert Assert.IsEmpty(dialog.SelectedDikeProfiles); Assert.IsInstanceOf(new ControlTester("GrassCoverErosionInwardsDikeProfileSelectionView", dialog).TheObject); @@ -75,9 +74,8 @@ using (var dialog = new GrassCoverErosionInwardsDikeProfileSelectionDialog(new Form(), dikeProfiles)) { + var selectionView = (DataGridView) new ControlTester("DikeProfileDataGrid", dialog).TheObject; - var selectionView = (DataGridView)new ControlTester("DikeProfileDataGrid", dialog).TheObject; - dialog.Show(); selectionView.Rows[0].Cells[0].Value = true; @@ -89,11 +87,6 @@ } } - private Point2D CreateTestPoint() - { - return new Point2D(0,0); - } - [Test] public void GivenDialogWithSelectedDikeProfiles_WhenCancelButtonClicked_ThenReturnsSelectedCollection() { @@ -107,7 +100,7 @@ using (var dialog = new GrassCoverErosionInwardsDikeProfileSelectionDialog(new Form(), dikeProfiles)) { - var selectionView = (DataGridView)new ControlTester("DikeProfileDataGrid", dialog).TheObject; + var selectionView = (DataGridView) new ControlTester("DikeProfileDataGrid", dialog).TheObject; dialog.Show(); selectionView.Rows[0].Cells[0].Value = true; @@ -134,7 +127,7 @@ using (var dialog = new GrassCoverErosionInwardsDikeProfileSelectionDialog(new Form(), dikeProfiles)) { - var selectionView = (DataGridView)new ControlTester("DikeProfileDataGrid", dialog).TheObject; + var selectionView = (DataGridView) new ControlTester("DikeProfileDataGrid", dialog).TheObject; dialog.Show(); selectionView.Rows[0].Cells[0].Value = true; @@ -150,6 +143,11 @@ selectedDikeProfile }, result); } - } + } + + private Point2D CreateTestPoint() + { + return new Point2D(0, 0); + } } } \ No newline at end of file