Core.Common.TestUtil

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
- Extended FileUtils to validate if a path is writable - Extended MigrationService with feature to actually migrate - Added tests - Added first version of a migration script Related to Issue [WTI-1060]

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

Former-commit-id: 4707789247d38b8610d6dfcea46f6f7ba3d5f83f

Former-commit-id: 0bfe0ab0ab08f18941c06964bbaebad464d3ff07

  1. … 25 more files in changeset.
* Improved API for setting data source of DataGridViewControl. * Cleanup * Introduced TestHelper for dealing with DataGridView. Related to Issue [WTI-1044]

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

Former-commit-id: 4a1fa52f3808c8da5aa270f12d19453259f5aaaa

Former-commit-id: b5d01eab6d905847254e86e6169eb9bfa7719fd5

    • -0
    • +91
    ./DataGridViewTestHelper.cs
  1. … 26 more files in changeset.
Upgraded to NUnit 3.6.0 Assert.IsNullOrEmpty(...) --> Assert.That(string.IsNullOrEmpty(...)); [STAThread] --> [Apartment(ApartmentState.STA)] [RequiresSTA] --> [Apartment(ApartmentState.STA)]

Current directory <> output dir

http://stackoverflow.com/questions/35852979/using-resharper-nunit-tests-start-in-a-random-temporary-directory

NUnit 3.0 stopped changing current directory.

use TestContext.TestDirectory as the location of your file.

Related to Issue [WTI-1047]

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

Former-commit-id: 8e98e0fcf163c22a6a73ac3aadca4cf947804b0e

Former-commit-id: 490f137aa03123596bf0293183ace6db4f4614e9

  1. … 334 more files in changeset.
Merged revision(s) 7802-7807 from branches/Release/16_4: Ran Deltares cleanup Related to Issue [WTI-1065]

........

Adjusted validator of StabilityPointStructureParameterKeyword22 to only validate {{Mean}}

Related to Issue [WTI 1102]

........

Changes after review

paired with bouvrie

Related to Issue [WTI-1065]

........

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

Former-commit-id: 7837197cf36f26bd709d61e3d88aaf4c25e55313

Former-commit-id: ee9e4d26cca941db8a5cbd20d5b9735843e6b06f

  1. … 32 more files in changeset.
Ran Deltares cleanup Related to Issue [WTI-1065]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/Release/16_4@7802 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 05a1c976155c91a0c967427812499bb5fef75a8d

Former-commit-id: 08d16a9e8e7c0987ca42dc9f7b5a4a09473501ff

  1. … 40 more files in changeset.
use nameof in ArgumentExceptions Reviewed by: tangerma

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

Former-commit-id: 9c57894ed74bd4bda07a642ac438b95a96f7fdbd

Former-commit-id: 18257c5da4b96f4217b8e7394aa113ddd658207f

  1. … 10 more files in changeset.
use nameof in Argument*Exceptions Reviewed by: tangerma

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

Former-commit-id: 489d965acd6cbed374e72d9a9f10deec8787bcfd

Former-commit-id: 0ef178298a4e4639093af98897cfb40d331b372d

  1. … 284 more files in changeset.