Core.Common.TestUtil.Test

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
* 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.
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

    • -14
    • +198
    ./DirectoryDisposeHelperTest.cs
    • -52
    • +51
    ./DirectoryPermissionsRevokerTest.cs
  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
    • +56
    ./EnumTestFixtureTest.cs
  1. … 24 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. … 2 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.
* 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
    • +246
    ./DataGridViewTestHelperTest.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.
Improved TestHelperTest test for AssertImagesAreEqual, so that it isn't dependent on the images being square. Refactored DataGridViewColorCellTest a bit.

Related to Issue [WTI-1071]

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

Former-commit-id: 2284c72fd885c962e862f75be2df25ba39adbf95

Former-commit-id: 6a7800952d646e8d9dd000978d18b923f336c1fe

    • binary
    ./Resources/double-abacus.png
  1. … 1 more file in changeset.
Extracted variable for number. Made some variable types explicit. Improved code coherence. Related to Issue [WTI-967]

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

Former-commit-id: aedbbeb298f12c44adc2898d289023fb24ec751b

Former-commit-id: 7d6b4f625c17734198d104d6e8bc2394a1783f41

  1. … 3 more files in changeset.
Removed obsolete Test from WaveConditionsInputContextPropertiesTest. Made certain variables' types explicit. Replaced .Matches(x => true) with Is.NotNull. Some general cleanups. Added missing docs. Related to Issue [WTI-968]

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

Former-commit-id: 95da872000b9ba2b113ad54b4c3f8ee363e25472

Former-commit-id: 782a5a1fef732e1f91e310b5a31aeb471f792751

  1. … 68 more files in changeset.
Clear output on piping input change. Implemented RandomExtensions.NextRoundedDouble which returns a random RoundedDouble. Related to Issue [WTI-967]

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

Former-commit-id: 0ffea6e0e10b0ef3177fb36ae8b9173530bead71

Former-commit-id: a59c847497fa79889c366d5553c30b199efbfd0a

  1. … 5 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 1312, paired with berg_jl Related to Issue [WTI-1008]

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

Former-commit-id: d8367acbc19bedad11ce4429457a710c1652e0c5

Former-commit-id: faeb9649a7840d25c65ff895f4deec6c2f0f8926

  1. … 3 more files in changeset.
Performed Resharper cleanup

Related to Issue [WTI-1008]

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

Former-commit-id: 23d17fd6b5257a25b167839d9106eea6fa7be554

Former-commit-id: 4a817a07bc646924777514e78010c89bc0fdf9b5

  1. … 114 more files in changeset.
Updated test names Only calculate DikeHeightAssessmentOutput when HBN calculation succeeds.

Related to Issue [WTI-986]

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

Former-commit-id: fac60bdb9a577ef52b5a1b4d9da0122125767aca

Former-commit-id: fe356a0e5a9bd39ac4f2a208e7b473e4f8e766a6

  1. … 3 more files in changeset.
- Introduced NextEnumValue extension method for Random. - Review related changes: -- Used random value for enums in tests -- Renamed test name Related to Issue [WTI-986]

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

Former-commit-id: c8c8c8bef85e5705f56f74a2367e1dfc9052134f

Former-commit-id: 5163c008c98291b6b33d0c0a1cd67ea85ded26a4

  1. … 4 more files in changeset.
Removed unused references in Core.Common Related to Issue [WTI-1008]

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

Former-commit-id: 3d6fbefb18cbf7c9e7f00aa4d99b0cb0a98c4a3e

Former-commit-id: 61641899bbdfcd33e65c7162d5a5a86d34d5fa1d

  1. … 1 more file in changeset.
* Split single-line multi-variable declarations, as these violate code conventions. * fixed typos * Some cleanup * Improved variable names Related to Issue [WTI-791]

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

Former-commit-id: 7810fbf1cd1553e9b3c81e86ac9c1ee64a2a2b7d

Former-commit-id: 50dfb991732913182435b85b8aa66dd61752312a

  1. … 13 more files in changeset.
* Introduced ControlsTestHelper to expose helper methods related to faking user interaction with controls. * FailureMechanismContribution now keeps the same otherFailureMechanism instance for it's whole lifetime. * FailureMechanismContributionItem now exposes it's internal IFailureMechanism. * Removed unused resource and method. * Moved responsibility of closing views for irrelevant marked IFailureMechanism from FailureMechanismContributionView to FailureMechanismContributionItemRow * Introduced AssessmentSectionCompositionChangeHandler and moved code away from FailureMechanismContributionView. ** FailureMechanismContributionView now uses AssessmentSectionCompositionChangeHandler. Related to Issue [WTI-791]

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

Former-commit-id: 78821f0b39be58810d650ea80f1b9610d4bc8c0f

Former-commit-id: 7571de1deb8de32ab9d12d23b2cdca3a5f9b0103

    • -0
    • +97
    ./ControlsTestHelperTest.cs
  1. … 27 more files in changeset.
* Added standard serialization constructor to all Exception classes. * Explicitly defined culture for string.Format methods. * Replaced IFileImporter.ProgressChanged property to method (recommendation by C# coding conventions) * Renamed classes containing win32.dll invokes to NativeMethods (recommendation by C# coding conventions)

Related to Issue [WTI-931]

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

Former-commit-id: 78fae4fb038935c7a58a0fb534baa750b173d589

Former-commit-id: fc7d0938a3677be66218915a3e665a9cc6757df9

    • -0
    • +55
    ./SerializationTestHelperTest.cs
  1. … 163 more files in changeset.
Added test for HydraRingSettingsDatabaseHelper Added test for services using the HydraRingSettingsDatabaseHelper Related to Issue [WTI-919]

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

Former-commit-id: dcfbd7b5fabf11f1138e811bd4209fb085b26db0

Former-commit-id: 1a82cfd6bdbbd0b7b65585ed7e799f44bd0be7d8

  1. … 12 more files in changeset.
- Check the code coverage configuration of the trunk Related to Issue [WTI-931]

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

Former-commit-id: 60655265b27b5521f0a53b0998b9ce77e069342f

Former-commit-id: e0560a24c08e4583c331a82ea5348baac1a32bfe

  1. … 97 more files in changeset.
Incorporated review comments / general cleanup of tests - (Editorial) removed brackets surrounding () => Foo = Bar(); calls when applicable/possible

Related to Issue [WTI-927]

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

Former-commit-id: 6279cf0f92e90580a616b3e546c1497f56f4c00a

Former-commit-id: 0b1cdf9e5e874a9368801d156358c56928f69aa4

  1. … 13 more files in changeset.
- Some XMLdoc related changes - Added tests for FileDisposeHelperTest Related to Issue [WTI-931]

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

Former-commit-id: 77c87ba591192bdd285d37f194ef4c3587be5787

Former-commit-id: fb1887410da13bb09ff78cf6d529d20c51f16d37

  1. … 1 more file in changeset.
Fixed double run tests.

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

Former-commit-id: 04d4aad9801f90db1de4d459825bd3aaa5d3e7d6

Former-commit-id: 81682ca1ae3115ad1b16ff79e2a4e072db5b9f0b

  1. … 30 more files in changeset.
* Refactored code to be moved into RandomExtensions (and fixed a bug with it) Related to Issue [WTI-935]

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

Former-commit-id: 35166059ce639aaf523715a5e8cd8244a706d5ae

Former-commit-id: 136080fc932663fb4a25b5cd161017bde2e90b59

  1. … 3 more files in changeset.
* Refactored RandomNumberGenerator to extension method for Random instances. * Reformatted code. Related to Issue [WTI-838]

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

Former-commit-id: 40a316b32991c5d7a521eb03d5aea2c885aeaf17

Former-commit-id: 5e7268436a267df8bb3b522f5a920df5f736e32f

    • -0
    • +97
    ./RandomExtensionsTest.cs
  1. … 9 more files in changeset.
- Introduced RandomNumberGenerator to generate random double from a range Related to Issue [WTI-838]

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

Former-commit-id: 42db0e244bfeca3168cca8ae0eb6c95919111b80

Former-commit-id: efd26cc62206b78908cafb31b34c662dfcb8ed23

    • -0
    • +97
    ./RandomNumberGeneratorTest.cs
  1. … 6 more files in changeset.