Tests

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixed ThrowIfArgumentNull to give proper message.

Fixed use of message CsvHeaderNullOrEmpty (it was not found because name was different).

Improved tests to see if expected message was given for header and splitter.

Related to Issue [MWDAM-1556]

    • -9
    • +21
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
  1. … 3 more files in changeset.
Created tmp folder for all the tests in DataPluginImporterTests and remove at the end of all tests.

Related to Issue [MWDAM-1541]

Added unit tests for CalculationParametersAssembler

Related to Issue [MWDAM-1295]

    • -0
    • +24
    ./TestData/SampleCalculationParameters.xml
    • -0
    • +94
    ./CalculationParametersAssemblerTest.cs
Cleanup code due to SonarCube analysis

- Use ArgumentNullException i.s.o. NullReferenceException (implement ThrowHelper)

- Move strings to resources

Related to Issue [MWDAM-1556]

    • -3
    • +3
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
  1. … 4 more files in changeset.
Modified tests according to updated files and expected results

Related to Issue [MWDAM-1541]

    • binary
    ./TestData/HempolderImport/Log.xlsx
Simplified tests

Related to Issue [MWDAM-1556]

    • -56
    • +15
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
Put test for Piping together with the other types except for stability outside.

Related to Issue [MWDAM-1556]

    • -27
    • +11
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
Throw exception when River Level Low is not specified in case the calculation model is Stability Outside.

Related to Issue [MWDAM-1556]

    • -3
    • +88
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
  1. … 1 more file in changeset.
Added tests for import of parameters that can be imported from scenarios.csv but also from locations.csv and shapefiles.

Related to Issue [MWDAM-1541]

    • -0
    • +3
    ./TestData/HempolderImport/csvfiles/scenarios.csv
    • -0
    • +30
    ./TestData/HempolderImport/Lijnscenarios.defx
    • -0
    • +1
    ./TestData/HempolderImport/shapefiles/Locations.qpj
    • -0
    • +7
    ./TestData/HempolderImport/csvfiles/soilprofiles.csv
    • binary
    ./TestData/HempolderImport/shapefiles/Segments.shp
    • binary
    ./TestData/HempolderImport/shapefiles/Crosssection.sbn
    • -0
    • +1
    ./TestData/HempolderImport/shapefiles/Segments.qpj
    • -0
    • +1
    ./TestData/HempolderImport/shapefiles/LijnScenario.prj
    • -0
    • +30
    ./TestData/HempolderImport/Vlakscenario.defx
    • binary
    ./TestData/HempolderImport/shapefiles/VlakScenario.shx
    • binary
    ./TestData/HempolderImport/shapefiles/Locations.shx
    • -0
    • +1
    ./TestData/HempolderImport/shapefiles/VlakScenario.prj
  1. … 30 more files in changeset.
Add import of uplift criteria and safety factors from locations.csv of shapefile to scenario.

Related to Issue [MWDAM-1521]

  1. … 3 more files in changeset.
Enable and improve License tests

Related to Issue [MWDAM-890]

Prepare to implement DamLicense object for DamLive

Related to Issue [MWDAM-890]

  1. … 2 more files in changeset.
Modified test for HeadPl2

Related to Issue [MWDAM-1537]

DegreeOfConsolidation default to null. Write DegreeOfConsolidationSpecified=false in xml to Engine when DegreeOfConsolidation is null.

Related to Issue [MWDAM-1539]

  1. … 3 more files in changeset.
refactored: Moved CreateLocationsFileWithObsoleteColumn upwards so that all CreateScenarios methods are together.

Related to Issue [MWDAM-1530]

When expected head pl3 and pl4 headers are not found in the scenarios.csv, check if the old format headers are available.

Related to Issue [MWDAM-1530]

  1. … 2 more files in changeset.
Adapted due to review comments.

Related to Issue [MWDAM-1527]

  1. … 2 more files in changeset.
Removed DamCalculationBenchmarkTest.cs from Deltares.Dam.Tests.csproj, because it is also in Deltares.Dam.BenchmarkTests.csproj

Related to Issue [MWDAM-1519]

Removed parameters from Location that are in Scenario as well.

Related to Issue [MWDAM-1537]

    • -250
    • +233
    ./Importers/LocationPropertyImporterTest.cs
    • too large
    ./TestData/DamLive/Grebbedijk/input.damx
    • -2
    • +0
    ./Sensors/SensorImportFromExcelSheetTest.cs
    • -94
    • +90
    ./Importers/LineAttributeImporterTest.cs
    • -10
    • +12
    ./Importers/LocationShapeFileImporterDotSpatialTests.cs
    • -44
    • +29
    ./Importers/LocationShapeFileImporterTest.cs
  1. … 22 more files in changeset.
Fixed IO tests, due to Removed ModelFactors.

Related to Issue [MWDAM-1519]

    • -11
    • +0
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
Fixed IO tests, due to Removed HeadPl3, HeadPl4, Pl1BelowCrestRiverside, Pl1BelowCrestPolderside, Pl1BelowShoulderCrestPolderside, Pl1BelowToeDikePolderside, Pl1BelowCrestMiddle, Pl1FactorBelowShoulderCrest from WaternetOptions.

Related to Issue [MWDAM-1519]

    • -9
    • +0
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
Fixed tests due to: Renamed WaterHeight back to RiverLevel, except in csv files.

Related to Issue [MWDAM-1521]

Fixed failing tests:

- WaterHeight was renamed back to RiverLevel which caused the newly introduced visibility tests to fail.

Related to Issue [MWDAM-1518]

Removed obsolete parameters ProbabilisticType and SoilType.

Related to Issue [MWDAM-1527]

    • -77
    • +16
    ./UISupport/ConfigurationManagerTest.cs
    • -2
    • +1
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
    • -23
    • +0
    ./DamEngineIo/ConversionHelperTests.cs
  1. … 12 more files in changeset.
Renamed WaterHeight back to RiverLevel, except in csv files.

Related to Issue [MWDAM-1521]

    • -2
    • +1
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
    • -8
    • +8
    ./Importers/LocationPropertyImporterTest.cs
  1. … 8 more files in changeset.
Removed obsolete parameter IsUseOriginalCalculationOptions, cleaned up text references for previous obsolete parameters and removed obsolete Overtopping calculator.

Related to Issue [MWDAM-1527]

    • -95
    • +0
    ./OvertoppingErosionCalculatorTest.cs
  1. … 5 more files in changeset.
Raise exception when river level is not defined in ValidateDamProjectData

Related to Issue [MWDAM-1521]

    • -1
    • +21
    ./DamEngineIo/FillXmlInputFromDamUiTests.cs
  1. … 1 more file in changeset.
Removed obsolete parameters GrassQuality, Direction, LevelReductionInside, LevelReductionOutside, LayerHeightDeviation, LayerHeightDistribution and IsUseOriginalPLLineAssignments.

Related to Issue [MWDAM-1527]

    • -51
    • +0
    ./Importers/LocationPropertyImporterTest.cs
  1. … 18 more files in changeset.
Added comments at tests

Related to Issue [MWDAM-1516]

Reordered properties that are related to the scenarios tab:

- Visibility should however be maintained when the program is not in DesignMode

-- Added tests to verify behaviour of the parameters that are also displayed in the scenariostab

-- Optimized the switch-case logic by using fall-through

Related to Issue [MWDAM-1518]

  1. … 1 more file in changeset.