Core.Components.Gis.IO.Test

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- Introduced testutil project to assert geometry related classes in Core.Common.Base -- Cleaned up Core.Common.TestUtil by removing Core.Common.Base related test utils to the new project -- Fixed build server - Introduced cloning for Point2D objects -- Introduced GeometryCloneAssert to assert Point2D clones

Related to Issue [WTI-1366]

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

Former-commit-id: a6a9f790a7ff9bcd558f7f4c15cf2be68653a9b3

Former-commit-id: a1576bc02662e6465d5374332124612c7b7eaa26

    • -0
    • +1
    ./Readers/PolygonShapeFileReaderTest.cs
  1. … 8 more files in changeset.
Update NUnit, NUnitForms and nunit console runner. Adapt test in StorageMigrationIntegrationTest to work with these new versions. Paired with ~kleijn

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

Former-commit-id: d32ca7d8738b0bb50b4f4ac19fa9e7c268f965e9

Former-commit-id: e24bfa0dc5657b1d0e6ca1568bd40cf07e9b637a

  1. … 399 more files in changeset.
Revert NUnit update

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

Former-commit-id: 1d73f8246f0dfc579d22331767d1b8d1916a1738

Former-commit-id: 2be271427816a015a44cc959568214acc6e2a12e

  1. … 384 more files in changeset.
Update NUnit to 3.8.1

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

Former-commit-id: 79700b393691e91c968151e820e18665334d429f

Former-commit-id: b3c165824399f30e6b937de3b001599a2df685f1

  1. … 396 more files in changeset.
Upgraded nunit3-console.exe and NUnit to 3.7.1

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

Former-commit-id: bd8ef3d5d0e001dd3753e950743d282d431939b8

Former-commit-id: 0e6297e2ce8a35cf9bdb3d58436513012a5379e6

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

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

Former-commit-id: ad5590e230191cdc4e680263f816ed99ea3331ca

Former-commit-id: 7ed564d3b347eb425f5eb0dc71d2690acdc3fd2b

    • -1
    • +1
    ./Readers/WmtsConnectionInfoReaderTest.cs
  1. … 88 more files in changeset.
Review related changes => Small code cleanup Related to Issue [WTI-1300]

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

Former-commit-id: 68441178b14e32cd321414d382f6a428f1cda0ab

Former-commit-id: 8b00cbc85c90deb3474d80508bf093e2bf2efdbd

    • -1
    • +1
    ./Readers/WmtsConnectionInfoReaderTest.cs
  1. … 39 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
    ./Importers/FeatureBasedMapDataImporterTest.cs
    • -1
    • +1
    ./Readers/PolygonShapeFileReaderTest.cs
    • -1
    • +1
    ./Readers/PolylineShapeFileReaderTest.cs
    • -1
    • +1
    ./Readers/WmtsConnectionInfoReaderTest.cs
    • -1
    • +1
    ./Writers/PolylineShapeFileWriterTest.cs
    • -1
    • +1
    ./Writers/WmtsConnectionInfoWriterTest.cs
  1. … 806 more files in changeset.
Changed all local vars to consts if possible. Related to Issue [WTI-1242]

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

Former-commit-id: 4684a5017b9aff9f6175f7d781cb29409f50a18e

Former-commit-id: 853c649ebc49a9513535e40ec705d5b928af0bc4

    • -2
    • +2
    ./Writers/PolylineShapeFileWriterTest.cs
  1. … 281 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

    • -19
    • +19
    ./Importers/FeatureBasedMapDataImporterTest.cs
    • -9
    • +8
    ./Readers/PolygonShapeFileReaderTest.cs
    • -3
    • +2
    ./Readers/PolylineShapeFileReaderTest.cs
    • -11
    • +10
    ./Readers/ShapeFileReaderBaseTest.cs
    • -3
    • +3
    ./Readers/WmtsConnectionInfoReaderTest.cs
    • -9
    • +9
    ./Writers/PolylineShapeFileWriterTest.cs
    • -4
    • +4
    ./Writers/WmtsConnectionInfoWriterTest.cs
  1. … 281 more files in changeset.
Fixed all license headers for Core.Components Related to Issue [WTI-1242]

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

Former-commit-id: 91a6d1ea7dcece6df5aa2db433aada7c8cabf4c1

Former-commit-id: 11edcf185e344d71e536039fea4860660eddac0e

  1. … 36 more files in changeset.
If the Wmtsconnectioninfo Config file does not exist, the default is loaded from embedded resource Extended XMLdoc of WmtsConnectionInfoReader Related to Issue [WTI-1201]

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

Former-commit-id: 1ef6ce5a2e25fc077e032c2efb43bb236b6ac6ae

Former-commit-id: 25429883ff35f5af097ea25577dc241e2959a0a7

    • -1
    • +19
    ./Readers/WmtsConnectionInfoReaderTest.cs
  1. … 10 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
    • +1
    ./Readers/PolygonShapeFileReaderTest.cs
    • -0
    • +1
    ./Readers/PolylineShapeFileReaderTest.cs
    • -0
    • +1
    ./Readers/WmtsConnectionInfoReaderTest.cs
  1. … 120 more files in changeset.
Changes related to suggestions by tester Related to Issue [WTI-1091]

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

Former-commit-id: 2e894a482df4d92cfaea3d1779a7f0e39723c992

Former-commit-id: 00328f83193d7c20b1ae6d9630340b1f3a619039

    • -3
    • +10
    ./Writers/WmtsConnectionInfoWriterTest.cs
  1. … 11 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
    • +1
    ./Readers/WmtsConnectionInfoReaderTest.cs
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/WmtsConnectionInfosWithoutWmtsConnectionsElement.txt
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/WmtsConnectionInfosZeroWmtsConnections.txt
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/twoValidWmtsConnectionInfosReversedOrder.txt
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/twoWmtsConnectionInfosOneEmptyUrl.txt
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/twoWmtsConnectionInfosOneWithoutNameElement.txt
    • -0
    • +1
    ./test-data/WmtsConnectionInfo/twoWmtsConnectionInfosOneWithoutUrlElement.txt
  1. … 11 more files in changeset.
Merged revision(s) from branches/WTI-1088 Related to Issue [WTI-1088]

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

Former-commit-id: 33abf8bc20b8724d9bf5cadc4a1a404bd4f3b9dc

Former-commit-id: 338c1378907add09d2a5d6e980c7896a12c533e6

    • -0
    • +261
    ./Readers/WmtsConnectionInfoReaderTest.cs
    • -0
    • +180
    ./Writers/WmtsConnectionInfoWriterTest.cs
  1. … 200 more files in changeset.
Moved IO folder in DotSpatial.Forms to Gis.IO

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

Former-commit-id: d2ea5667a092f3c26b9e680e86bbdbdb6dc5ac15

Former-commit-id: 71422d5f3241bd8de0c52ca3fa0b15b49d107d85

    • -0
    • +261
    ./Readers/WmtsConnectionInfoReaderTest.cs
    • -0
    • +180
    ./Writers/WmtsConnectionInfoWriterTest.cs
  1. … 17 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

    • -15
    • +15
    ./Importers/FeatureBasedMapDataImporterTest.cs
  1. … 26 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
    • +1
    ./Readers/PolygonShapeFileReaderTest.cs
    • -1
    • +1
    ./Readers/PolylineShapeFileReaderTest.cs
    • -26
    • +11
    ./Writers/PointShapeFileWriterTest.cs
    • -28
    • +13
    ./Writers/PolylineShapeFileWriterTest.cs
    • -19
    • +13
    ./Writers/ShapeFileWriterBaseTest.cs
  1. … 20 more files in changeset.
Review related changes Related to Issue [WTI-1135]

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

Former-commit-id: 2c7b932b25746d662f1872d0cc7da1da362c0ac2

Former-commit-id: 1f84cdb983217ed176b0641fe2e377ece56b7c2a

    • -35
    • +32
    ./Readers/PointShapeFileReaderTest.cs
    • -29
    • +29
    ./Readers/PolygonShapeFileReaderTest.cs
    • -25
    • +25
    ./Readers/PolylineShapeFileReaderTest.cs
  1. … 20 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

    • -2
    • +1
    ./Writers/PolylineShapeFileWriterTest.cs
  1. … 34 more files in changeset.
- Updated texts of ValidateFilePath Added method GetFullPath that throws only ArgumentExceptions Related to Issue [WTI-1060]

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

Former-commit-id: c17a15c75b90157638db91f8a04112cafacf43d8

Former-commit-id: 0eed903d451361194e8d2111d155a0755c633259

  1. … 32 more files in changeset.
Changed invocations of Path.GetInvalidFileNameChars() to Path.GetInvalidPathChars() where appropriate. Related to Issue [WTI-1060]

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

Former-commit-id: f68419a6786407fdbcab4cc9ecb6df2d38f9629f

Former-commit-id: 95c49baffa303369bbd953c0c443b1830e8f1bb0

  1. … 7 more files in changeset.
- Updated texts - Changed ValidateFilePath to write the chars Path.GetFileName validates against (Path.GetInvalidPathChars()) in its exception Related to Issue [WTI-1060]

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

Former-commit-id: 2035c7d87c781c6d0cc8fa7a3fdd46eb85a9b7e1

Former-commit-id: 0bb23d23531231bb7c07834ec39505714bb049a7

  1. … 23 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
    • +1
    ./Importers/FeatureBasedMapDataImporterTest.cs
  1. … 40 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) 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

    • -23
    • +0
    ./Importers/FeatureBasedMapDataImporterTest.cs
  1. … 26 more files in changeset.
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. Related to Issue [WTI-490]

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

Former-commit-id: a7ed9765b1704388f2feef56e6987b3c879533e1

Former-commit-id: 92c188923122822809c1403794b1e86914fa41f5

    • -23
    • +0
    ./Importers/FeatureBasedMapDataImporterTest.cs
  1. … 3 more files in changeset.
- Upgraded Project ToolsVersion="4.0" to ToolsVersion="14.0" - Ignored ".vs" folder in trunk paired with tang_ds

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

Former-commit-id: beca2918e38aa1e3900b6bc17a0df7e8d1f9c8e3

Former-commit-id: 681a7a3764b91f67e1e97dc0d30f930c901276e0

  1. … 219 more files in changeset.
Changes after review. Related to Issue [WTI-1016]

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

Former-commit-id: 7eea8f3346f21c5f0ae2283c6d7eeb94f731f07c

Former-commit-id: 3cd3e2fe4ed82c29d50bcd0f2aeae9999e698f04

  1. … 7 more files in changeset.