Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs =================================================================== diff -u -rf07d6418a5280c74ea8a35de183dbaed51dda066 -rb68aeb86a9034514bee88a54bdc7307896d6c157 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision f07d6418a5280c74ea8a35de183dbaed51dda066) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision b68aeb86a9034514bee88a54bdc7307896d6c157) @@ -68,13 +68,22 @@ } [Test] - public void GetViewName_Always_ReturnsViewName() + public void GetViewName_WithWaveHeightLocationsContext_ReturnsViewNameContainingCategoryBoundaryName() { + // Setup + const string categoryBoundaryName = "Category"; + + var context = new WaveHeightLocationsContext(new ObservableList(), + new ObservableTestAssessmentSectionStub(), + () => 0.01, + hbl => new HydraulicBoundaryLocationCalculation(), + categoryBoundaryName); + // Call - string viewName = info.GetViewName(null, null); + string viewName = info.GetViewName(null, context); // Assert - Assert.AreEqual("Golfhoogtes", viewName); + Assert.AreEqual($"Golfhoogtes - {categoryBoundaryName}", viewName); } [Test]