Ringtoets.Common.Forms.TestUtil

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extracted reusable method in PipingFailureMechanismContextProperties. Improved documentation in IFailureMechanismPropertyChangeHandler. Added test cases for FailureMechanismPropertyChangeHandlerTest and GrassCoverErosionOutwardsFailureMechanismPropertyChangeHandlerTest. outlining Related to Issue [WTI-967]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7631 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: c9971e1450d361c984ae35d74f5235766ff15517

Former-commit-id: a09e3765fdbd04a45e2f91a68333e114d3b4aa2c

    • -11
    • +4
    ./FailureMechanismSetPropertyValueAfterConfirmationParameterTester.cs
  1. … 7 more files in changeset.
Added some missing license header files. Renamed tests to match what is tested. Related to Issue [WTI-972]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7624 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 8cd2e7edf77f423240cb5eda122e5e7db0e70027

Former-commit-id: 2c9fbc42be8a55eaa73ece30b8905fab3c42a1d4

    • -1
    • +22
    ./FailureMechanismSetPropertyValueAfterConfirmationParameterTester.cs
  1. … 14 more files in changeset.
Introduced FailureMechanismSetPropertyValueAfterConfirmationParameterTester, which is an implementation of the IFailureMechanismPropertyChangeHandler that can be used for testing whether the SetPropertyValueAfterConfirmationParameter method has been called with correct parameters. Replaced the stub in PropertyClasses/PipingFailureMechanismContextPropertiesTest with instances of this class. Related to Issue [WTI-967]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7608 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 1620d4cfff387bab836d6faffb122335d9f9fb52

Former-commit-id: d31f4847bca00a60887b70a0b3626fb464eba23b

    • -0
    • +71
    ./FailureMechanismSetPropertyValueAfterConfirmationParameterTester.cs
    • -0
    • +5
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 3 more files in changeset.
UseBreakWaterProperties now has 2 constructors. A parameterless one which can be used for readonly properties and one constructor which accepts an ICalculation which will be updated after changes. GrassCoverErosionInwardsInputContextProperties now also clears calculation output on input changes (except for UseBreakWaterProperties). Implemented Calculation property for WaveConditionsInputContext, so that it can be used for the UseBreakWaterProperties. Related to Issue [WTI-968]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7452 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 8c69cb119c00ee7c030a4e16fdb79359fba6ecd6

Former-commit-id: ea785af7876ccbda0ae1a3e2605fde18e4945dec

    • -0
    • +1
    ./Ringtoets.Common.Forms.TestUtil.csproj
    • -0
    • +38
    ./TestCalculation.cs
  1. … 35 more files in changeset.
- Upgraded Project ToolsVersion="4.0" to ToolsVersion="14.0" - Ignored ".vs" folder in trunk paired with tang_ds

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7422 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: beca2918e38aa1e3900b6bc17a0df7e8d1f9c8e3

Former-commit-id: 681a7a3764b91f67e1e97dc0d30f930c901276e0

    • -1
    • +1
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 219 more files in changeset.
Made assertion methods public and moved it to generic MapDataTestHelper to prevent duplication. Related to Issue [WTI-773]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7415 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f4970fba98af98ff2449ff79c1fd162979db06ab

Former-commit-id: 8c97e4d0c25b26fd89e6b13367e27216d56d370a

  1. … 10 more files in changeset.
Performed Resharper cleanup

Related to Issue [WTI-1008]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7334 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 23d17fd6b5257a25b167839d9106eea6fa7be554

Former-commit-id: 4a817a07bc646924777514e78010c89bc0fdf9b5

  1. … 114 more files in changeset.
Added missing headers. Related to Issue [WTI-1008]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7293 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5f927efe1743a5ed1cd78e89a2bc4f49d3cfba79

Former-commit-id: c98379396348018284827c6bf4fc38d6f11d7cff

  1. … 11 more files in changeset.
* Moved HydraulicBoundaryLocation and related classes from HydraRing.Data to Ringtoets.Common.Data\Hydraulics * Removed HydraRing.Data and related test projects. * Moved importer related test data from HydraRing.IO to Ringtoets.Common.IO Related to Issue [WTI-988]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7087 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 17347220df48d78521b65d257dde9b4ffdace273

Former-commit-id: dc5ddfa6d8f3719bd2dd4a2f62ed94f98f962499

    • -4
    • +0
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 425 more files in changeset.
Refactored AssertHydraulicBoundaryLocationsMapData Related to Issue [WTI-957]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6948 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: c386154973d3f505756ff4840a4cd0c3a1a8f7a8

Former-commit-id: 8b5c69aa21c7586b8932d6bd1398e34bb4e8b51c

  1. … 11 more files in changeset.
Improvements after review. Related to Issue [WTI-958]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6893 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f13c8e61044fef1f92228c90798610eaba2e9db0

Former-commit-id: ed0dfd84142c7f056222face78429e348332b912

  1. … 13 more files in changeset.
- Added observers for HydraulicBoundaryDatabase in all failure mechanism views. - Moved assert method to Test helper. Related to Issue [WTI-957]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6868 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: b534e6113b4bb921c593681b6541b0a6edc4d875

Former-commit-id: 4cb451e37d68c6d15437de0ba0f244c6e59e39de

    • -0
    • +4
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 20 more files in changeset.
- Implemented attributes for failure mechanism sections. - Create separate feature for each failure mechanism section instead of one single feature. - Introduced TestHelper for map data. - Prioritize labels on selected attribute to prevent exceptions on columns that don't exist. Related to Issue [WTI-958]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6798 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: aba68e9df68fefd168a3e2e58ff8e30560ce37e2

Former-commit-id: d0db92ad4c8a9f8eb2b65a32c1ea80840a6b053a

    • -0
    • +64
    ./MapDataTestHelper.cs
    • -0
    • +15
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 19 more files in changeset.
Incorporated comments review 1208 - Renamed DataGridViewCellTester to DataGridViewCellTestHelper - Introduced protected AssessmentLayerOneColumnIndex for the FailureMechanismResultView, replaced all local definitions for the derived classes when relevant - Added Core.Common.Version dependencies to the Common.Forms.TestUtil and its Common.Forms.TestUtil.Test

Related to Issue [WTI-985]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6771 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 58e7647abfb79ad27d29c407da8ba6b8141e8195

Former-commit-id: 3a457868facc8a1a0d885a7fb668c95d909fb0ac

    • -0
    • +68
    ./DataGridViewCellTestHelper.cs
    • -1
    • +1
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 40 more files in changeset.
- Resolved compilation errors by introducing the AssessmentLayerOneState when applicable - Added the DataGridViewCellTester for the tests that explicitly tested the cell Style properties

Merged revision(s) 6630-6714 from branches/WTI-985:

Added enum indicating the state of assessment layer one

........

Added enum indicating the state of assessment layer one

........

- Incorporated enum for AssessmentLayerOne in the failure mechanism section

- Fixed tests that are directly related to the failure mechanism section

Note: derived views and corresponding tests are NOT fixed yet

........

- Fixed tests for Q-variant failureMechanisms

........

- Fixed ReadExtensions for storage

........

- Fixed ReadExtension tests for storage

........

Fixed issues on the RingtoetsProjectTestHelper:

- Introduced private method to generate a random state of AssessmentLayerOne

........

Fixed issues on the AssessmentLayerOneState:

- Corrected strings that are displayed in the view

- Created a protected method to provide access for every derived failure mechanism view to the Enumwrapper for AssessmentLayerOneState

........

Implemented feature on the ClosingStructuresFailureMechanismResultView:

- Replaced the checkbox with a dropdown colum containing the AssessmentLayerOneState value

- Fixed or expanded tests

........

Implemented feature on the GrassCoverErosionInwardsFailureMechanismResultView:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Removed test that asserts the toggling of the checkbox: test is obsolete because it's replaced with a dropdown box

- Extended test for assessing that the right columns are visible when a failure mechanism is present

(Editorial) For the closing structure failure mechanism

- Write out string resource values when testing

........

Implemented feature on the GrassCoverErosionOutwardsFailureMechanismResultView:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing test

........

Extended tests:

- Assess the behaviour of the datagrid row for every state of AssessmentLayerOneState

........

Implemented feature on the GrassCoverErosionInwardsFailureMechanismResultView:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Removed test that asserts the toggling of the checkbox: test is obsolete because it's replaced with a dropdown box

- Extended test for assessing that the right columns are visible when a failure mechanism is present

........

Implemented feature on the Piping FailureMechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Removed test that asserts the toggling of the checkbox: test is obsolete because it's replaced with a dropdown box

- Extended test for assessing that the right columns are visible when a failure mechanism is present

........

Extended tests:

- Added additional section when assessing the behaviour of the three possible states of AssessmentLayerOne

........

Implemented feature on the Stability point structures FailureMechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

........

(Editorial) For the grass cover erosion outwards failure mechanism

- Write out string resource values when testing string values of the column headers

........

Implemented feature on the Stability stone cover FailureMechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Added assertions for when cells are enabled. This includes an additional test that verifies the behaviour when the state changes to "sufficient" for assessmentLayerOne

........

Implemented feature on the wave impact asphalt cover FailureMechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

........

Removed obsolete reference to RingtoetsCommonFormsResources in the tests

........

Created project to include helper classes for asserting Forms related projects

........

Created project to include helper classes for asserting Forms related projects:

- Reverted accidental change on Common.Data.TestUtil project

........

Created project to include helper classes for asserting Forms related projects:

- Created helper class to assert whether DataGridViewCells are in an enabled or disabled state

........

Created project to include helper classes for asserting Forms related projects:

- Created helper class to assert whether DataGridViewCells are in an enabled or disabled state

........

Extracted base method to add assessment section name and assessment section layer one columns

........

Improved helper class DataGridViewCellsTester:

- Enabled state does not always mean readonly, assertion behaviour can be toggled

- Documented when AssertionException can be thrown

........

Refactoring:

- For the mechanisms that already implement the dropdown box for assessment layer one: use an override of the AddDataGridColumns to set the correct columns

- Aforementioned function already sets the section name and dropdown box for assessment layer one per default

........

Incorporated helper class DataGridViewCellsTester:

- Replaced every instance of a local cell enabled/disabled assertion with the DataGridViewCellsTester

........

Implemented feature on the dune erosion failure mechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature on the grass cover slipoff inwards failure mechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Removed obsolete RingtoetsCommonResource reference

........

Implemented feature on the grass cover slipoff outwards failure mechanism:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature for the macro stability related failure mechanisms:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature for piping structure failure mechanisms:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature for strength stability lengthwise construction failure mechanisms:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature for technical innovation failure mechanisms:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Implemented feature for water pressure asphalt cover failure mechanisms:

- Replaced the checkbox with a dropdown column containing the AssessmentLayerOneState value

- Fixed failing/not working tests

- Typed out string values when asserting column headers

- Replaced local cell assertions with the DataGridViewCellTester

........

Fixed ReadExtension tests for storage:

- Compilation error when trying to run this test due to invalid cast from bool to the AssessmentLayerOneState

........

Fixed ReadExtension entity tests for storage:

- Adapted read entity tests to assess for the enum AssessmentLayerOneState instead of a boolean for LayerOne. Entities were already adjusted due to changes in the FailureMechanismSectionResult

........

* Updated database design (new comments added).

* Defined default value for FailureMechanismSectionResult.

* Specified concrete values for AssessmentLayerOneState.

........

Related to Issue [WTI-985]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6730 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 417e584767297df8e93c02b36a0af938af02894c

Former-commit-id: 03a26b4cac7f05f4cf9dfde404b76d15b41d82cb

    • -0
    • +68
    ./DataGridViewCellTester.cs
    • -0
    • +27
    ./Properties/AssemblyInfo.cs
    • -0
    • +71
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 182 more files in changeset.
Improved helper class DataGridViewCellsTester: - Enabled state does not always mean readonly, assertion behaviour can be toggled - Documented when AssertionException can be thrown

Related to Issue [WTI-985]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-985@6679 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 202d40b5c5a95213b881c02896968cca299bfbb3

Former-commit-id: 3603c91b5756b0486e31e01ac687c3f79268aa44

  1. … 1 more file in changeset.
Created project to include helper classes for asserting Forms related projects: - Created helper class to assert whether DataGridViewCells are in an enabled or disabled state

Related to Issue [WTI-985]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-985@6672 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 52ea34f24475939e405357feb066be4b805850ed

Former-commit-id: 75c39862dec8e91e0345ca444b453b28abf1785f

    • -0
    • +57
    ./DataGridViewCellTester.cs
  1. … 2 more files in changeset.
Created project to include helper classes for asserting Forms related projects Related to Issue [WTI-985]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-985@6663 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 31d471af8a658b4aa442ea0bee9658b9a51528c2

Former-commit-id: dfd932dedfc790a00a7a3c56590bcc8f58abfcf6

    • -0
    • +27
    ./Properties/AssemblyInfo.cs
    • -0
    • +71
    ./Ringtoets.Common.Forms.TestUtil.csproj
  1. … 4 more files in changeset.