Core.Common.Base.Test

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merged all revision(s) from branches/UpdateDikeProfilesFeature

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

Former-commit-id: 5f84130acb4bd2113b949015b4049e0c0b5795c4

Former-commit-id: 86ce2960f4b2cd6be35b62d7b6608749e29f1022

    • -9
    • +37
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 147 more files in changeset.
Merged revision(s) 8903-8904, 8907-8908, 8912, 8916-8917, 8920-8921, 8924, 8926-8927, 8929, 8931 from branches/WTI-1141-refactoring Related to Issue [WTI-1141]

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

Former-commit-id: 20121aade51e77a9fb98f916933be489ac2e4622

Former-commit-id: 9bc973dd3346f28033a593cb3b574457c29554d9

  1. … 43 more files in changeset.
Removed FilteredKeyDictionary.

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

Former-commit-id: 7ee1453f5c3268607bcad13f458766a5a6f87ccd

Former-commit-id: 7e8ed23e4f7b1e491d5ea0109838e32e30f700b0

  1. … 2 more files in changeset.
Implemented FilteredKeyDictionary which prevents items being added for keys that are not allowed. Related to Issue [WTI-1141]

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

Former-commit-id: 3aa870ab8b10f9152eb4be2acc713774055b4451

Former-commit-id: 209dd477f22b1329fb8ec9d44c2dbca8cd67c6f6

    • -0
    • +553
    ./FilteredKeyDictionaryTest.cs
  1. … 6 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

    • -0
    • +32
    ./IO/CriticalFileReadExceptionTest.cs
    • -1
    • +1
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 122 more files in changeset.
Improvements after review. Related to Issue [WTI-1133]

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

Former-commit-id: 331f6ea0cfe5494ebfc1e4fb917ee42212e8a114

Former-commit-id: e779a2129e8567975f4f85e6bb8e1ac14bd3bc43

    • -2
    • +2
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 25 more files in changeset.
Incorporated comments review 1478: - Updated XMLDoc - Refactored ObservableUniqueItemCollectionWithSourcePath: -- Turned class into an abstract class -- Removed generic TFeature, because explicit knowledge is not needed -- Adjusted inherited classes or classes that make direct use of the ObservableUniqueItemCollectionWithSourcePath

Related to Issue [WTI-1075]

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

Former-commit-id: 68cb3152a1c682b33bb73740c7d2e1300459cde2

Former-commit-id: 3e983eaebb15fdbe735d2ae5c62aa07d82a65242

    • -22
    • +29
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 17 more files in changeset.
Incorporated comments review 1478: - Adjusted sql script - Added tests for the strategy template classes to assert the correct function arguments are used when the protected functions are called - Updated XMLDocs Related to Issue [WTI-1075]

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

Former-commit-id: f4c9ff2c01986c8e24d309d3a1095352ede30c64

Former-commit-id: 668e94b92a17932f62f7583edae32491bec917d1

    • -2
    • +2
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 9 more files in changeset.
Incorporated comments review 1468: - Final refactoring of the derived classes from the ObservableCollectionWithSourcePath: -- Extended functionality of the ObservableUniqueItemCollectionWithSourcePath to ensure that at least one feature is given for the validation on the uniqueness of items -- Adjusted the inherited classes with new signature -- Added and fixed failing tests - Moved resource from Forms to Data for the shared display name between the Data and Form layer in Piping

Related to Issue [WTI-1075]

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

Former-commit-id: 8f83ec6400451549356efd9f20d927d42205140d

Former-commit-id: b27663c546ef469624f9a5bf847bd5a118eea841

    • -81
    • +172
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 23 more files in changeset.
Incorporated comments review 1468: - First refactoring of the derived classes from the ObservableCollectionWithSourcePath: -- Renamed class that it represents a collection with unique items -- Extracted method to get unique features from an object Related to Issue [WTI-1075]

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

Former-commit-id: ca2e766323a3dab411a508b14467d5230d70be37

Former-commit-id: 70b7615b7831401251adc0a9919d10193828537c

    • -417
    • +0
    ./ObservableCollectionWithSourcePathTest.cs
    • -0
    • +417
    ./ObservableUniqueItemCollectionWithSourcePathTest.cs
  1. … 18 more files in changeset.
* Improved XML docs. * Cleanup. * Extended ProbabilityHelper with overload such that caller can provide a custom message instead. Related to Issue [WTI-1131]

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

Former-commit-id: 9177505cb61daf6a68a65969379f77c6a6b20f99

Former-commit-id: fba413d5000b603d7c8cd42a7c31cedac7e31dbe

  1. … 10 more files in changeset.
* Introduced Range class and FormattableConstants * Refactored all mentions of value ranges in Resources throughout the solution and replaced those by injecting instances of Range. ** This solution supports globalization of the application better. * Removed Dotspatial Legend related stuff from BruTileLayer and IConfiguration (and it's derivatives). * Cleanup in BruTileLayer. * Extended ProbabilityHelper with method for validating probability values. Related to Issue [WTI-1131]

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

Former-commit-id: d5a767df415eb68fcef3ebd2503020ed5f4979cc

Former-commit-id: 1bdd5e06da36a1dbb69f6e6e4d1e529805155d47

    • -0
    • +191
    ./Data/RangeTest.cs
    • -0
    • +45
    ./FormattableConstantsTest.cs
  1. … 82 more files in changeset.
Renamed test after review. Related to Issue [WTI-1083]

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

Former-commit-id: d6c3c1ffe55cb0fdfb8ce3897f7fecf8a6b02795

Former-commit-id: 9d08c8d73165dc4764e6166534914bc5e3d3b05a

    • -1
    • +1
    ./ObservableCollectionWithSourcePathTest.cs
Incorporated comments review 1444: - Improved test and variable names - Renamed test class to reflect which class it's actually testing Related to Issue [WTI-1083]

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

Former-commit-id: 361a2b40edd09623e9908c2a3554a95e477a196a

Former-commit-id: 63116986ccb04e7f07fecf7919539179bf1ac726

    • -4
    • +4
    ./ObservableCollectionWithSourcePathTest.cs
  1. … 4 more files in changeset.
Turned the StochasticSoilModelCollection into a collection that uses generics: - Stores elements of type T and the source path (same functionality as the StochasticSoilModelCollection) - Modified influenced components, fixed failing tests Related to Issue [WTI-1083]

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

Former-commit-id: e49abec52fc1d6390fe033f62ed83ea72907ec2b

Former-commit-id: 512f88aa9067fcf94700873b63491b69b276b41a

    • -0
    • +417
    ./ObservableCollectionWithSourcePathTest.cs
  1. … 22 more files in changeset.
Added validation for Probability of StochasticSoilProfile. Added StochasticSoilmodelUpdateException. Provided base implementation of the DoPostImport (cancelable behavior) and an overridable DoPostImportUpdates to implement just the model updates. Added Strategy postfix to IStochasticSoilModelUpdateStrategy implementations. Fixed liskov issue with StochasticSoilModelUpdateDataStrategy. Related to Issue [WTI-1070]

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

Former-commit-id: 1b86b03430a8714c43abdb447dbf9a561426a94e

Former-commit-id: 781140c2712d3dd80e4e97c162a8455e54d8227d

  1. … 40 more files 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

    • -69
    • +2
    ./Storage/CouldNotConnectExceptionTest.cs
    • -69
    • +2
    ./Storage/StorageValidationExceptionTest.cs
    • -69
    • +2
    ./Storage/UpdateStorageExceptionTest.cs
  1. … 58 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. … 335 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. … 30 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. … 37 more files in changeset.
Added operator overloads for RoundedDouble (as discussed in Tech meeting) paired with tang_ds

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

Former-commit-id: e2187faa4083564b7a6cae6b9263f57b2ca1304d

Former-commit-id: 0b736ad40e3fd146360771b0d8c692d684fca45d

  1. … 1 more file in changeset.
Added extra coverage for the FileImporterBase. Related to Issue [WTI-490]

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

Former-commit-id: b797eb6462a81a4190d128214f4091c238c4fed9

Former-commit-id: 01e21e08d598f1f5fad84f6c67fcb93a6d20d6f8

Incorporated comments review 1385: (Editorial) - Made the spelling of "Canceled" or "Uncancelable (opposed to "Cancelled" or "Uncancellable") consistent throughout the application.

Note:

"Cancellation" is legit U.S. spelling and therefore unchanged. "Cancelation" is not common and rarely used.

Related to Issue [WTI-490]

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

Former-commit-id: 665e259f03237740e63d6441088354043dae52f2

Former-commit-id: 98c98ae04c081843c7bab2c55946744a8d06dad2

  1. … 33 more files in changeset.
Incorporated comments review 1385: - Improved FileImporterBase: -- Use null propagation -- Removed unnecessary setter -- Virtual method to abstract method, fixed affected failing tests - Improved StructuresImporter: -- Used nameof function -- Renamed private field parameter name conform coding standards - Minor editorial changes - Removed redundant aliases

Related to Issue [WTI-490]

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

Former-commit-id: ae36ef10b17db21a36e1c42d2fff77760a8665d6

Former-commit-id: 125e339e8568945268976ffc402eba124269dfff

  1. … 8 more files in changeset.
Get rid of AffectedNonTargetObservableInstances property in FileImporterBase Related to Issue [WTI-490]

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

Former-commit-id: b4399ab53f7c2aac15418f5353df3a273c66df30

Former-commit-id: ad12f9acfead5c0cbdb94f1fdff36c99392b06e6

  1. … 3 more files in changeset.
Merged revision(s) 7595-7638 from branches/WTI-490:

Merged revision(s) 7537-7594 from trunk

........

Initial commit of changes from kleijn:

- Removed HandleUserCancellingImport: FileImporter should not decide on its own how to handle Canceled actions. Consequently removed the messages that are generated by these handles

- Added logic to the importers: Cancelling is not possible when putting data on the data model. Action will always execute when it is in this stage

- Added branching paths in the activity: Import() returns false when it has failed or is cancelled

Note: failing tests will be fixed in following commits

........

Fixed tests of the FileImporterBase and Activity:

- Checks on the states are made for the 4 different paths of the Import:

-- Import successful, canceled or not

-- Import not successful, canceled or not

- Moved logging from the activity to the importer

- Added tests to assert mentioned behaviour

........

Fixed tests of the PipingSurfaceLinesCsvImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Added resource value for the ImportActivity (missing file commit)

........

Fixed tests of the PipingSoilProfilesImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned redundant brackets

........

Fixed tests of the StructuresImporter:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

Adjusted test in PipingSoilProfilesImporterTest

- Changed initial value of the result to make clear that the value is set correctly

........

Fixed tests of the ProfilesImporters:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Removed obsolete Cancel call in the PipingSoilProfilesImporterTest

........

FileImporters should call Observers in case the import was successfull AND was cancelled at an uncancellable stage.

Note: test is missing to verify this behaviour

........

Fixed tests of the ProfilesImporters:

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Temporarily removed the Cancel tests, because the FeatureBasedMapDataImporter does not have a handle for NotifyProgress. Hence, Cancel method cannot be invoked when Import is running.

........

Fixed tests of the FailureMechanismSectionsImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned up tests in the StructuresImporterTest

........

Fixed tests of the ReferenceLineImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

........

Related to Issue [WTI-490]

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

Former-commit-id: 1c355702dfbd410c7c4733529d8db9e243496eba

Former-commit-id: 75c614862d018947936ef85e3775a125c425c032

    • -3
    • +29
    ./Service/FileImportActivityTest.cs
  1. … 25 more files in changeset.
Fixed tests of the FileImporterBase and Activity: - Checks on the states are made for the 4 different paths of the Import: -- Import successful, canceled or not -- Import not successful, canceled or not - Moved logging from the activity to the importer - Added tests to assert mentioned behaviour

Related to Issue [WTI-490]

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

Former-commit-id: b54ccb13a0780daf3321fcbc02998200ae3283da

Former-commit-id: 22fd647c89a1cc3b0d4f812e4018335057f64e80

    • -3
    • +29
    ./Service/FileImportActivityTest.cs
  1. … 2 more files in changeset.
Reverted some changes Related to Issue [WTI-490]

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

Former-commit-id: 393a81aac4454cde27f7e6d667c125be4feb4c81

Former-commit-id: 9f0e2dd030a3f7922b3d222910b7f7c36eff6e02

  1. … 4 more files in changeset.
Ensured PostImportUpdates are also performed for import routines that are canceled Related to Issue [WTI-490]

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

Former-commit-id: e656c1c86281862b19fcbed4d24fb1ad93a27d17

Former-commit-id: 64de80ca92d93bfd541aabe98834020536dda166

  1. … 4 more files in changeset.
Fixed bug when cancelling an import action results in a failed state of the activity: - Activity checks if it wasn't cancelled. If it was, do not set the activity state to failed; otherwise check the result of the import action - Added test to assert the behaviour

Related to Issue [WTI-982]

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

Former-commit-id: 130e530ddcc3eea92352e5a4e389a83109f89119

Former-commit-id: ffaf023f8720c812f357f0d8b9fd4e2739c39336

    • -0
    • +20
    ./Service/FileImportActivityTest.cs
  1. … 1 more file in changeset.