Core.Common.TestUtil

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Incorporated comments review 1959: - Relevant comments for storage and core.common -- Updated XMLDoc -- Renamed function -- Improved tests

Related to Issue [WTI-1308]

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

Former-commit-id: 6e23272a101a01689cf7052727e04e17e8520c98

Former-commit-id: 51c5084c3e9669df022cda3f54bdbd92bd624d51

  1. … 7 more files in changeset.
Improved existing implementations of existing services that read illustration points: - Introduced a TestGeneralResult containing only FaultTreeIllustrationPoints to Assert behaviour on the classes that make use of the GeneralResult converters - Added TestHelper method which allows assertions on the generated Exceptions in the log - Added missing tests which assert the logging behaviour when a calculation does not converge

Related to Issue [WTI-1308]

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

Former-commit-id: c92d4f326db7c4987492c09192b089ad36d106ca

Former-commit-id: b417dc94e8227e4ef0963f43297b60641bd2cb8c

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

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

Former-commit-id: 956e9c2e2851f8f9e75bd4555c2e7c2f0e8a848e

Former-commit-id: e967fa9200e8ab902e9642038d6a8589fd42d285

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

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

Former-commit-id: d1fae9b586cabafa4d38b6da110b821a25c96c03

Former-commit-id: f012869fbcc80ea0d259b8b6939f2af1149a82f0

  1. … 6 more files in changeset.
Core.Components.Charting.TestUtil.Test: - Added core.common.version ref - Sanitized AssemblyInfo.cs - Added GlobalAssembly link Removed obsolete <AllowedReferenceRelatedFileExtensions>none</AllowedReferenceRelatedFileExtensions> from projects Replaced <DebugType>pdbonly</DebugType> with <DebugType>none</DebugType> for test projects in ReleaseForCodeCoverage configuration. Related to Issue [WTI-1272]

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

Former-commit-id: 74ee4dd27678a18952f28919028d8e8814d46617

Former-commit-id: e91cb2b6dae36d8d3cfa8bede7cbc70ad87f90d6

  1. … 44 more files in changeset.
Implemented and used TestHelper.AssertCollectionAreSame and TestHelper.AssertCollectionAreNotSame. Related to Issue [WTI-1262]

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

Former-commit-id: 45e9ac87b9ab4847dad533e1fdcdbcba7b84f044

Former-commit-id: 5f19f45d5a0d7020bfb6407b46215f82945a0ea4

  1. … 3 more files in changeset.
extracted AssertAreEqualButNotSame Related to Issue [WTI-1262]

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

Former-commit-id: af049f23c0512d3144849b953232863f29544cc7

Former-commit-id: a1332c15b0a513ff71e6988597d77b43fff8c874

  1. … 7 more files in changeset.
Merged revision(s) from branches/WTI-1266:

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

Former-commit-id: ff835f09e487b4bc2afff45bc03a5a25984d2f62

Former-commit-id: 9b502b747a26eabecc0f2b9e5920ce0c25d69b36

  1. … 565 more files in changeset.
Renamed test data paths. Related to Issue [WTI-1266]

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

Former-commit-id: d7337bfd2309f73d092c2bb2ef109990cb688e3e

Former-commit-id: 4ef952a8b84488a562a3f517f9b300bc3964ecbb

  1. … 218 more files in changeset.
Performed cleanup.

Paired with berg_jl

Related to Issue [WTI-1243]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/Release/17_1@9613 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: ae470666b04338291ed9d6e1a564320b9a9596fd

Former-commit-id: 13de3f470e6d1179c5c4a7aca862cd1481c108f0

    • -1
    • +1
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 16 more files in changeset.
Moved test data from from integration closer to where they are used. Fixed test expectancies. Related to Issue [WTI-1194]

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

Former-commit-id: 3ac6a6b2f0cb6fb330da41f6d826f49d38682482

Former-commit-id: 5b3e08523720135d0af8b103a1da29a3016d48e5

  1. … 173 more files in changeset.
Incorporated comments review 1719: - Moved FileFilterGenerator from Core.Common.Gui to Utils: -- Added references to projects that require Utils -- Moved FileFilterGenerator related resources from Core.Common.Base to Utils -- Deleted redundant test class ExpectedFileTest - Adjusted test names - Added XML docs Related to Issue [WTI-1242]

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

Former-commit-id: 865b42401cd8168aa4aca7e8d048391d42f2b2da

Former-commit-id: bb0f3b2386007e10aadbec61e8f57178409c38df

  1. … 102 more files in changeset.
Updated license headers in core. Related to Issue [WTI-1242]

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

Former-commit-id: e7f214adee97782d28ee82f096d8cc27547439e6

Former-commit-id: b339ec31825c8ea8fed91e675069b65afba8433b

    • -1
    • +1
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 803 more files in changeset.
Removed implementation of GetMemberName from TypeUtils for we can now use nameof operator of C# 6.0. Related to Issue [WTI-1242]

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

Former-commit-id: 996cc01173768b9787336f8eb638e2baf721353f

Former-commit-id: f5a543233c72cb519f4cc8580fc289facf67c9bc

  1. … 77 more files in changeset.
TypeParam names fixed. Reviewed by: janssen Related to Issue [WTI-1242]

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

Former-commit-id: 15056d0a57768fb2ec13e36474687b24a4dcfb2b

Former-commit-id: 18a3a72d6fb7a55eccade99d520587804f61416d

    • -22
    • +22
    ./CustomExceptionDesignGuidelinesTestFixture.cs
  1. … 4 more files in changeset.
Applied cleanup over Ringtoets.Core Related to Issue [WTI-1242]

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

Former-commit-id: e79666c3005d8749a1973fc827c38a6e17a64dfd

Former-commit-id: d1b69716d861a8986cd3fb3e1426d5be26758c48

  1. … 29 more files in changeset.
Removed unused dll references (up till WaveImpactAsphaltCover) Related to Issue [WTI-1242]

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

Former-commit-id: d0cf8adc15c73dfce00ead6e93d7a6f5393241ab

Former-commit-id: 27dce050eda3480ecd68f6c074e14e1c3e12b459

  1. … 97 more files in changeset.
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.