Core.Common.TestUtil

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Core code-cleanup. Searched for superfluous this. for property assignments as well.

Related to Issue [WTI-1242]

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

Former-commit-id: ecb498b6096a9d8b0a66e69428411d5ae18ec80a

Former-commit-id: 9cc4bad09e38263256924549eaa807b887009030

    • -1
    • +1
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 280 more files in changeset.
Fixed all license headers for Core.Common Related to Issue [WTI-1242]

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

Former-commit-id: fd6670c8f1dc23800f528d8cf1bcca9b59450097

Former-commit-id: 2fcc5b60e67454ddfd4a0d5153de6c37c38f17b8

    • -1
    • +22
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 17 more files in changeset.
Added migration for Deviation to CoefficientOfVariation (DiamgerD70 and Permeability) Related to Issue [WTI-1238]

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

Former-commit-id: b43346d17f885905ec5e1183b1ec9b6bbf4f52f3

Former-commit-id: cf46093959658c093d7ab0ed646702f0ff96150c

  1. … 7 more files in changeset.
Review related changes Related to Issue [WTI-1229]

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

Former-commit-id: 285128d4cefa432f3689d4ab0f908f69c24214b6

Former-commit-id: 7840d089bbdaa8ed2a7ecdf87690902ed1fe1dd7

* Fix attempt for bug in buildserver.

Should fix the following exception occurring on teamcity:

Expected: No Exception to be thrown

But was: <System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)

at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()

at Core.Common.TestUtil.FileDisposeHelper.Create()

at Core.Common.TestUtil.FileDisposeHelper..ctor(IEnumerable`1 filePaths)

at Core.Common.TestUtil.Test.FileDisposeHelperTest.<>c__DisplayClass5_0.<Constructor_InvalidPath_DoesNotThrowException>b__0()

at NUnit.Framework.Constraints.ThrowsConstraint.VoidInvocationDescriptor.Invoke()

at NUnit.Framework.Constraints.ThrowsConstraint.ExceptionInterceptor.Intercept(Object invocation)>

at Core.Common.TestUtil.Test.FileDisposeHelperTest.Constructor_InvalidPath_DoesNotThrowException()

Analysis:

The dictionary is not changed while it is being enumerated. The relevant code is called from within the constructor, so there cannot be another thread attempting to do work on that FileDisposeHelper instance as no reference to that instance has been produced yet. The 'foreach' inside the constructor of FileDisposeHelper over all filepaths will enumerate that particular collection and add member to the dictionary before the Create method is called. From this analysis, I dare to conclude that it is impossible that there are any changes to the dictionary from within the Create method when it is called from the constructor of FileDisposeHelper.

However, failing tests on the buildserver with stacktrace prove otherwise. This at least ought to solve the problem, but it's likely treating symptoms than the actual root cause of the problem.

Related to Issue [WTI-1229]

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

Former-commit-id: 9115d5114f3133b79811fb9f0ec1b417431be9f2

Former-commit-id: 1a64da7f60a42c228acb0a0c6776169a436d7185

* Fix attempt for FileDisposeHelper and DirectoryDisposeHelper to perform multiple attempts for deleting file/folder and waiting for finalizers when failing. Related to Issue [WTI-1229]

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

Former-commit-id: 0fc2bacae5cffb8e2611e67caa3642ea8f0f5abf

Former-commit-id: 208b6580935083833eaa986ff6131ecfe98b3d37

  1. … 1 more file in changeset.
Extended EnumTestFixture to assert enum values Introduced RingtoetsWellKnownTileSource Related to Issue [WTI-1200]

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

Former-commit-id: 74991138c18dd08c293366dc7ca1904fa4deefad

Former-commit-id: 6a2575c66259f9e3f45e0088bc8f151dd959316a

  1. … 16 more files in changeset.
Removed unused references fixed typo paired with bouvrie Related to Issue [WTI-1049]

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

Former-commit-id: 3d002b4243d9f0109eb93ae7554f04834585ac76

Former-commit-id: b8dc47f846a37f8df0cfe56d8ce83faee121aab7

  1. … 5 more files in changeset.
* Fixed typos. * Renamed MigrationNeeded to MigrationRequired. * Cleanup. * Asserting log messages improved by taking type of message into account. * Moved CriticalFileReadException from Core.Common.IO\Exceptions to Core.Common.Base\IO * Task is now disposed when disposing ActivityProgressDialog * Put license header back Related to Issue [WTI-1049]

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

Former-commit-id: 54560eb7ca6c0a99cdcf14b0406c23b9eca57311

Former-commit-id: 3b703601071d34a3cca2779d0c671f3d3ddabcd9

  1. … 124 more files in changeset.
Implemented exporter and writer for grass cover erosion inwards configurations. Extracted general concepts from WaveConditionsInputConfigurationSchemaIdentifiers and WaveConditionsInputConfigurationWriter. Related to Issue [WTI-1153]

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

Former-commit-id: 6344e734e4e7ef3a69657dbc05ecd249c90a8c86

Former-commit-id: 5e86e0cbb5e437b11c285582b78723c77bd57cc7

  1. … 23 more files in changeset.
Moved test data Related to Issue [WTI-1091]

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

Former-commit-id: a9d18e5104f9495f4786cbdde19ea14592adc8ec

Former-commit-id: 42b3df8f4707f2c39b55b62684c3309647525578

  1. … 20 more files in changeset.
Removed TestDataPath for Migration.Core.Common test-data Moved created file to ScratchPad paired with tang_ds Related to Issue [WTI-1095]

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

Former-commit-id: 799a5ef0143a887a6379649605a07264fba9c020

Former-commit-id: 3937b2c45bfc960f04e842dd1c02804d6a8a7169

  1. … 1 more file in changeset.
Created new Application.Migration project which will be responsible for the GUI migration logic - Updated License - Renamed and moved existing Application.Migration projects: -- Application.Migration --> Application.Migration.Core which will serve as the main library for all related Migration Ringtoets functionality -- Application.MigrationConsole --> Application.Migration.Console -- Updated the TestDataPath to point to the correct path Related to Issue [WTI-1095]

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

Former-commit-id: 26428f30b3c9f36ab105d8aa3a93e3df6449211b

Former-commit-id: dcb9d35bd6a34039e0d7b5a66b001036eed19c95

  1. … 92 more files in changeset.
Review suggestion - Bubbling of Exceptions in DirectoryPermissionsRevoker - Better initializer of WmtsConnectionDialog Related to Issue [WTI-1091]

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

Former-commit-id: be0bd1397f6efb9a600e23cf62d916430cf6b570

Former-commit-id: 1c10125eb86650d53d0097adbbea95f9025f6c6d

  1. … 2 more files in changeset.
Merged changes from branch for issue WTI 1196

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

Former-commit-id: dd0f7a287b5fad5260282fc8563c671f548c11e8

Former-commit-id: 3641e8b752df9027888ab116675adcd72030aa80

    • -0
    • +41
    ./InvalidPathHelper.cs
  1. … 77 more files in changeset.
Review suggestion - Extracted 'can write in directory' to TestHelper Related to Issue [WTI-1091]

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

Former-commit-id: 765597811edfbd109236b4e396a7773d858cdc7f

Former-commit-id: 8df66894178c30a8573677d772beb1e308a58755

  1. … 2 more files in changeset.
- Used nameof methods instead of random path to create test file names. - Bubbled IOException when trying to delete a test file and it fails so we know that the file is not deleted. Paired with @janssen

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

Former-commit-id: e808c5751086faf8a2b72d918e1074adb5044314

Former-commit-id: 4ba1926135f291f4b4a4ecb3debc1e7712f492c3

  1. … 25 more files in changeset.
* More tests now write to Scratchpad folder instead of some test data path (or to temp) Related to Issue [WTI-1088]

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

Former-commit-id: 52b0d6344e1d95add3b4fb21d5fc94c6cabdd09f

Former-commit-id: 8971cf5a936306f7e587726a9e1c205a79758950

  1. … 36 more files in changeset.
* Extended TestHelper with method to retrieve safe location to temporarily write to disk. * Scatchpad folder added to trunk to facilitate a single location for unit tests to write data to. Related to Issue [WTI-1088]

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

Former-commit-id: e7635032062244076eda88b706a1dbb785649827

Former-commit-id: 2d7bae66ff77bbf4cf088058ebca68663cc2f8c7

  1. … 1 more file in changeset.
Set DirectoryDisposeHelper to 'not be fully disposed' when directory was not deleted during Dispose() Set BruTileSettings.PersistentCacheDirectoryRoot to retrieve the value of SettingsHelper.GetApplicationLocalUserSettingsDirectory each time it is called. This is ideal for testing purposes Modified MapControlTest to use TestSettingsHelper to choose the active working directory instead of the actual working directory. Also removed the method DoWhileTileCacheRootLocked, which was used for to temporarily move the current content of the actual working directory. Related to Issue [WTI-1091]

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

Former-commit-id: f44094471f21a44d0bd61856415050f2abf2eed0

Former-commit-id: aceb8f20bd12cdf6e679c2b73c615dde2db60162

  1. … 7 more files in changeset.
Modified RingtoetsSettingsHelper as derived class of SettingsHelper Modified BruTileSettings to use SettingsHelper and has no knowledge of either "WTI" or "Ringtoets" in the 'Core' namespace Related to Issue [WTI-1091]

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

Former-commit-id: 85e2fe435c64ef34dfd52e0bd99c4d90e5aa87c9

Former-commit-id: 89a20a7c5dcc99cb2a9ed2c7c9c5b42a0f465a13

  1. … 12 more files in changeset.
Introduced DirectoryDisposeHelper Updated DirectoryPermissionsRevoker's XMLdoc Related to Issue [WTI-1091]

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

Former-commit-id: 9e5359a49dea935e9b38558dee625f1b20f7abce

Former-commit-id: 35dc00767df9740e07e03f8390eceae5c86632a0

  1. … 2 more files in changeset.
Introduced DirectoryDisposeHelper Related to Issue [WTI-1091]

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

Former-commit-id: d89a7dd1e9fea5c031bac8cb2af2a62c49238721

Former-commit-id: aa6617a6a6a9e5d3aa2b21451aaf0eacd4ad49c9

  1. … 2 more files in changeset.
Fixed Dispose implementation, see: * https://msdn.microsoft.com/en-us/library/fs2xkftw(v=vs.110).aspx * https://msdn.microsoft.com/en-us/library/ms182329.aspx Modified test names according to review suggestions paired with berg_jl Related to Issue [WTI-1060]

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

Former-commit-id: 0309ea4270612fcb1bcc18fc4a5e736b9d1722d2

Former-commit-id: 8e47735d6edd9e2f33431dd21d6f9c686651c976

  1. … 5 more files in changeset.
* Introduced EnumTestFixture and used throughout solution. * Extended TypeUtils with GetDisplayName for enum values. * Introduced ImageBasedMapData ** WmtsMapData now inherits from ImageBasedMapData ** Newly introduced WellKnownTileSource also inherits from ImageBasedMapData Related to Issue [WTI-1105]

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

Former-commit-id: 1a77fc96e65eb336b41b3db4eda31975494145bb

Former-commit-id: 5f6096b6eff37624574906891869115b3bb56695

    • -0
    • +61
    ./EnumTestFixture.cs
  1. … 26 more files in changeset.
Created method to lock the files in FileDisposeHelper

Related to Issue [WTI-1060]

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

Former-commit-id: cf200112fe4cc6f7b116b10789756cdd455cfeee

Former-commit-id: e7781162166cbb6dd42603c6adb9d5e6377ace5d

  1. … 1 more file in changeset.
* Introduced base TestFixture class for testing design of custom exceptions: CustomExceptionDesignGuidelinesTestFixture ** Refactored all ExceptionTest classes to used this new base-class. * Functional testcoverage for Core.Components.DotSpatial\Layer\BruTile\Configurations * PersistentCacheConfiguration no longer supports SQLite cache * ITileSourceFactory now guarantees that all ITileSource elements returned have a WmtsTileSchema. * TODO: More functional coverage for WmtsLayerConfiguration

Related to Issue [WTI-1088]

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

Former-commit-id: 0cd7c47dc7ee2221f69b7c3b4d88205d087c691e

Former-commit-id: b3dbe965ce4a4266af1d8284ad481d2449db14e7

    • -0
    • +146
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 60 more files in changeset.
Moved Ringtoets test files to Application.Ringtoets.Migration.Test/test-data Related to Issue [WTI-1060]

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

Former-commit-id: ea8c82641eb5a7bb9f192ed780415befadb8d788

Former-commit-id: 5bfb0944c6d7cd51b7d41a18f401ebcade0b4a2d

  1. … 29 more files in changeset.
* Renamed FileUtils to IOUtils and extended it with folder related validation methods. ** Defined DirectoryWriterErrorMessageBuilder to be used in validation message generation. * Extended MapControl with BackgroundMapData property. ** MapControl observes BackgroundMapData for changes. ** BackgroundMapData defines the coordinate system used, and will reprojet all other layers when needed. * Defined testing mocks for getting fake tile data, instead of requiring an internet connection for tests. * PipingFailureMechanismView makes use of the BackgroundMapData feature. Related to Issue [WTI-1088]

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

Former-commit-id: ebd8aca90052bb12a8d8167237267eb60e050684

Former-commit-id: 8a9624c64bec0ab4467267d9cbdbe12698bdff96

  1. … 65 more files in changeset.
- Moved Testhelper functions from the DataGridViewCellTestHelper to DataGridViewTestHelper for coherence - Deleted obsolete files - Removed unused references

Paired with bouvrie

Related to Issue [WTI-1044]

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

Former-commit-id: 9489e6615c4fa4e02720a908477e4461898d8fab

Former-commit-id: 4e13b627dfa1d26b297159ebb10fd987bc6f56fd

  1. … 23 more files in changeset.