Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs =================================================================== diff -u -rb23612b7fdc45eb275697f50a94756386d3c2c39 -r6cea962d14f1602ada21ad7a7e3a797d426d3722 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismResultViewTest.cs) (revision b23612b7fdc45eb275697f50a94756386d3c2c39) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismResultViewTest.cs) (revision 6cea962d14f1602ada21ad7a7e3a797d426d3722) @@ -191,10 +191,12 @@ Assert.AreEqual("Section 1", cells[nameColumnIndex].FormattedValue); var cellAssessmentLayerTwoA = cells[assessmentLayerTwoAIndex]; var cellAssessmentLayerThree = cells[assessmentLayerThreeIndex]; + DataGridViewCell dataGridViewCell = cells[assessmentLayerOneIndex]; - Assert.AreEqual(checkBoxSelected, (bool) cells[assessmentLayerOneIndex].FormattedValue); + Assert.AreEqual(checkBoxSelected, (bool)dataGridViewCell.FormattedValue); Assert.AreEqual("-", cellAssessmentLayerTwoA.FormattedValue); Assert.AreEqual("-", cellAssessmentLayerThree.FormattedValue); + Assert.IsEmpty(dataGridViewCell.ErrorText); var cellAssessmentLayerTwoABackColor = cellAssessmentLayerTwoA.Style.BackColor; var cellAssessmentLayerTwoAForeColor = cellAssessmentLayerTwoA.Style.ForeColor; @@ -293,7 +295,7 @@ } [Test] - public void GivenSectionResultWithoutCalculation_ThenLayerTwoANoError() + public void GivenSectionResultWithoutCalculation_ThenLayerTwoAErrorTooltip() { // Given using (var view = ShowFullyConfiguredFailureMechanismResultsView()) @@ -315,7 +317,7 @@ // Then Assert.AreEqual("-", formattedValue); - Assert.IsEmpty(dataGridViewCell.ErrorText); + Assert.AreEqual("Er moet een maatgevende berekening voor dit vak worden geselecteerd.", dataGridViewCell.ErrorText); } } @@ -347,7 +349,7 @@ // Then Assert.AreEqual("-", formattedValue); - Assert.AreEqual("De maatgevende berekening voor dit vak is niet uitgevoerd.", dataGridViewCell.ErrorText); + Assert.AreEqual("De maatgevende berekening voor dit vak moet nog worden uitgevoerd.", dataGridViewCell.ErrorText); } }