Core.Common.TestUtil

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added possibility to assert for log messages and log levels. Implemented IObservable on HydraulicBoundaryDatabaseContext to reroute attach/detach/notify to the assessmentSection instead. HydraulicBoundaryDatabaseImporter now works on the assessment section instead of the HydraulicBoundaryDatabaseContext. Refactored RingtoetsGuiPlugin to use IAssessmentSection rather than HydraulicBoundaryDatabaseContext in methods for opening a project file. Refactored to remove early returns in SelectDatabaseFile Added ProjectOpened listener to check for possibility to open the hydraulic database from the saved project. Refactored TreeNodeInfo tests so that dispose is taken out of the TearDown method so that verify can be called in the test rather than in the teardown.

Related to Issue [WTI-329]

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

Former-commit-id: e952cc1b1089a3ff69cbd50a8d7a46f82a9f3659

Former-commit-id: baa90cb0d08b480946f020297e3ef473199ff4b5

    • -0
    • +39
    ./LogLevelConstant.cs
  1. … 27 more files in changeset.
- Moved GC of FileDisposeHelper to the tests that depend on it -- Found out that calling *SQLiteConnection.ClearAllPools();* should close the connection pools. Unfortunately, in combination with the Entity Framework it does not seem to to have affect anything.

Related to Issue [WTI-476]

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

Former-commit-id: 714bcdc0449060510357432a4911f7c707119174

Former-commit-id: 0dbd339ef76ea75631b12f83cae703df639c6a68

  1. … 5 more files in changeset.
- Extended FileDisposeHelper to support multiple files that are guaranteed to be deleted upon disposal. - Implemented *PerformCalculation* for *ExceedanceProbabilityCalculationOutput* Related to Issue [WTI-476]

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

Former-commit-id: 7a76766169ac55a3e4b54b1c8ee9b5f8751344d7

Former-commit-id: 175f2ab6ab6fd6fd6971d29d79d08f8dd49f129f

  1. … 4 more files in changeset.
- Review comments processed Related to Issue [WTI-434]

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

Former-commit-id: f05f341be86ca1b4eb879333768a3925aa0cf58f

Former-commit-id: 447cb6e97ffc42fd36f3f0ce3d1649cd844161b9

    • -0
    • +52
    ./FileDisposeHelper.cs
  1. … 19 more files in changeset.
* Implemented review suggestions of WTI-Review-369: ** Made Point2D, Point3D and Segment2D more clearly immutable. ** Removed Point2D default constructor (now more consistent with point3D) ** Math2D.SplitLineAtLenghts improvements: *** Reuse of epsilonForComparisons. *** Xml docs. *** variable naming. ** Remove IFileImporter.SupportedItemType and made FileImporterBase generic with type-parameter to use instead. ** Improved test names. ** Optimizations in FailureMechanismSectionsImporter. ** Test coverage for DoubleWithToleranceComparer. ** Improved text resources. Related to Issue [WTI-365]

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

Former-commit-id: 9e27e584fe2b6fd5244140250c9ddd9a82bd3e65

Former-commit-id: 12a7c688737048e0aea43a05962cb795dc6fcccb

  1. … 29 more files in changeset.
* Extended Math2D with methods: ** generate a sequence of segments from a sequence of points ** split a sequence of points describing a line into sublines of given lengths * Moved DoubleWithToleranceComparer from Piping.IO.Test to Core.Common.TestUtil Related to Issue [WTI-365]

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

Former-commit-id: 30014773f914157551bef416cf68ff44f81db3d5

Former-commit-id: 5bb25e62e1d45eeb64d1acd97f45a93c4df30982

    • -0
    • +42
    ./DoubleWithToleranceComparer.cs
  1. … 6 more files in changeset.
Get settings file before default values. Related to Issue [WTI-362]

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

Former-commit-id: bd625433dddec2f9c5b0ef0f43a98b840d3d5d2a

Former-commit-id: 6b23d3575066958ad89c32d3359f54ab3c44e03b

  1. … 9 more files in changeset.
Moved test-data from Ringtoets.Piping.IO.Test to Ringtoets.Piping.Plugin.Test if it was only needed for the Importer. Added tests for extra or missing characteristic point definitions Added tests for duplicate definitions of surface line and characteristic points. Related to Issue [WTI-380]

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

Former-commit-id: 93f81ea1c6f2473eee3bf91126a7d6c40b4d6a54

Former-commit-id: 8f8926be662c632e63af4e8ee889a1befd55070e

  1. … 31 more files in changeset.
Introduced feature to read HRD database locations Replaced *PipingReadResult* by *ReadResult* Related to Issue [WTI-330]

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

Former-commit-id: 9c91f16ed42046390f0ae0e82710bf2732afdc1f

Former-commit-id: fe500ab72cdc1fb5f38bc11629b9ef1ee5ef2c09

  1. … 66 more files in changeset.
Implemented logic for clearing calculations when replacing the HRD. Related to Issue [WTI-326]

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

Former-commit-id: 69e82c35dbccc8cb5dbde13fa296a5b27105b1c4

Former-commit-id: 6938acf175e9ba2457cf461a1728e249b67991bf

  1. … 44 more files in changeset.
* Defined ReferenceLineReader. Related to Issue [WTI-317]

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

Former-commit-id: 5dabd75fa3ecb3f75a4134692f736bdaf1febf6a

Former-commit-id: e91398c24052030d9a3c625bf3917c357bc69456

  1. … 11 more files in changeset.
* Created LineShapeFileReader. * Extended MapLineData to be able to store 'Attributes' data. Related to Issue [WTI-317]

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

Former-commit-id: 55f7e216aee2341fbdca71006e3e9623d3ba7828

Former-commit-id: 503801c816effaf37790c04c035b26df40acaec3

  1. … 10 more files in changeset.
Refactored piping IO Reader to global reader base so we can also use it for HR database. Related to Issue [WTI-326]

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

Former-commit-id: a154c37f8986e44e7e2d9100ea5676023d3e0bb7

Former-commit-id: c695b2a962e1c6aa931094b946c0227de6853b99

  1. … 35 more files in changeset.
Move needed test source files to test-data folder. Remove TestFixtureTearDown in BaseMapTest for it removes the needed file and later tests fail. Related to Issue [WTI-242]

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

Former-commit-id: c6d1d9b2dd9091945e02bab6cdb84fe2e102676b

  1. … 63 more files in changeset.
* Added version to database * Added test-data for ringtoets databases * Moved FileUtils to Core.Common.Utils * Renamed Core.Common.Utils.Properties/Resource to Core.Common.Utils.Properties/Resources

Related to Issue [WTI-284]

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

Former-commit-id: 99e0a481b8b4a6abc91210fd23b345e3e4749f1b

  1. … 47 more files in changeset.
- Implemented feature to open a Project - Implemented feature to build new SQLite connection string - Had to implement method SaveProject to test check if the connection string works properly (will be further implemented in WTI-286 and WTI-285) - Added a few tests for storage Related to Issue [WTI-284]

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

Former-commit-id: a4ef1ff3db9d0bf68c8c468200fedf1955d634ae

  1. … 25 more files in changeset.
* Fully covered Core.Common.Utils.Drawing functionality. * Fixed bug in TestHelper.AssertImagesAreEqual as it was not actually comparing pixel images, but also image-metadata (header, footer, etc). Related to Issue [WTI-187]

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

Former-commit-id: e0b5028abb834d856a33e5b66820946f4282108e

  1. … 12 more files in changeset.
Got rid of NewtonSoft package Related to Issue [WTI-184]

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

Former-commit-id: 177f697f8da3ef8bf8b83a4265d1edbbca8c16f3

  1. … 15 more files in changeset.
Improved pdb configuration Related to Issue [WTI-309]

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

Former-commit-id: 95c06c9a739ec690e52abe7ac71566ab2dfe1049

  1. … 21 more files in changeset.
+ every member is static now Related to Issue [WTI-180]

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

Former-commit-id: 997f7dfa4c87947bb37e06622a1dcbc2642154a3

+ every member is static now + RethrowUnhandledException() is more safer now

Related to Issue [WTI-180]

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

Former-commit-id: 31fbb974b868892cbbc0ada45686f719dc317136

made RethrowUnhandledException() static. This simplified usage of this singleton. Related to Issue [WTI-180]

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

Former-commit-id: 4c9198a4efc9cde7ec8b3f34b940b36efba73fa3

removed reference from one test project to another to make sure the tests are only executed once Related to Issue [WTI-250]

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

Former-commit-id: be509f3fc0b52b962e12278aa2a7dabe1f6c6471

  1. … 21 more files in changeset.
instead of logging GuiTestHelper should throw proper exception Related to Issue [WTI-180]

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

Former-commit-id: 60b7a6061b688a5d6a6a2dddd268fb15abbcfd1a

Removed *target* folder, which contained performance reports in HTML Related to Issue [WTI-180]

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

Former-commit-id: 3d40de9bc0cb89e7b4dd9e0de96d72f5d913cb48

  1. … 2 more files in changeset.
Added regression tests for context menus of MapLayerTreeViewNodePresenter and MapTreeViewNodePresenter, which are currently obtained from MapLegendView. Related to Issue [WTI-90]

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

Former-commit-id: b4405308b98a843fc72c201d982e0e4dfdd88a28

  1. … 5 more files in changeset.
Improved TestHelper.AssertThrowsArgumentExceptionAndTestMessage implementation. Replaced ArgumentExceptions with ArgumentOutOfRangeExceptions where applicable. Made the use of random values in tests less risk-prone. Added assertions for total percentage of contribution. Related to Issue [WTI-168]

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

Former-commit-id: ebbed8b753ee15a7b606b00dcad76a7ec2a30766

  1. … 9 more files in changeset.
Updated constraints on Norm (>0) and Contribution(>0 and <=100). Added TestHelper.AssertExceptionCustomMessage which can be used to assert for custom exception messages. Exposed FailureMechanismContributionItem.Norm. Used more optimal Invalidate() (instead of Refresh()). Updated doc and tests. Related to Issue [WTI-168]

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

Former-commit-id: a9184622ae01d083c09734fa6db7c658445d10b8

  1. … 28 more files in changeset.
* Removed unused classes * Moved some code into TestHelper ** Also cleaned up TestHelper a bit. Related to Issue [WTI-187]

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

Former-commit-id: 038417f2ff4c5095a8bf31b1d37c2e31e643f9e6

  1. … 7 more files in changeset.
Renamed TestUtils to TestUtil Related to Issue [WTI-184]

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

Former-commit-id: d7daba7b69132117103600f3370c1324765c1c86

    • -0
    • +179
    ./Core.Common.TestUtil.csproj
    • -0
    • +162
    ./GuiTestHelper.cs
    • -0
    • +13
    ./Properties/AssemblyInfo.cs
    • -0
    • +93
    ./Resources.Designer.cs
    • binary
    ./Resources/application_form.png
    • binary
    ./Resources/database.png
    • binary
    ./Resources/table.png
    • -0
    • +118
    ./WindowsFormsTestHelper.Designer.cs
    • -0
    • +282
    ./WindowsFormsTestHelper.cs
    • -0
    • +120
    ./WindowsFormsTestHelper.resx
  1. … 125 more files in changeset.