Index: Migration/Core/src/Migration.Core.Storage/VersionedFileMigrator.cs
===================================================================
diff -u -reff58ff5a88462462d9e3d406cb921323ffd5a10 -re96e647dc81e8ecefa335ae514b50f68aa280b9e
--- Migration/Core/src/Migration.Core.Storage/VersionedFileMigrator.cs (.../VersionedFileMigrator.cs) (revision eff58ff5a88462462d9e3d406cb921323ffd5a10)
+++ Migration/Core/src/Migration.Core.Storage/VersionedFileMigrator.cs (.../VersionedFileMigrator.cs) (revision e96e647dc81e8ecefa335ae514b50f68aa280b9e)
@@ -39,10 +39,17 @@
private readonly IComparer versionedFileComparer;
///
- /// Creates a new instance of the class.
+ /// Creates a new instance of the class.
///
+ /// The comparer to use to compare versions.
+ /// Thrown when is
+ /// null.
protected VersionedFileMigrator(IComparer comparer)
{
+ if (comparer == null)
+ {
+ throw new ArgumentNullException(nameof(comparer));
+ }
fileMigrationScripts = GetAvailableMigrations()
.OrderBy(ms => ms.SupportedVersion())
.ThenByDescending(ms => ms.TargetVersion());
Index: Migration/Core/test/Migration.Core.Storage.TestUtil.Test/Migration.Core.Storage.TestUtil.Test.csproj
===================================================================
diff -u -r26906345dc00fdf928cf38a1356bd1b251c79422 -re96e647dc81e8ecefa335ae514b50f68aa280b9e
--- Migration/Core/test/Migration.Core.Storage.TestUtil.Test/Migration.Core.Storage.TestUtil.Test.csproj (.../Migration.Core.Storage.TestUtil.Test.csproj) (revision 26906345dc00fdf928cf38a1356bd1b251c79422)
+++ Migration/Core/test/Migration.Core.Storage.TestUtil.Test/Migration.Core.Storage.TestUtil.Test.csproj (.../Migration.Core.Storage.TestUtil.Test.csproj) (revision e96e647dc81e8ecefa335ae514b50f68aa280b9e)
@@ -37,6 +37,10 @@
..\..\..\..\packages\NUnit.3.6.0\lib\net40\nunit.framework.dll
True
+
+ ..\..\..\..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll
+ True
+
@@ -53,6 +57,16 @@
+
+
+ {EFD7E662-5B69-4B71-A448-565B64E9C033}
+ Migration.Core.Storage
+
+
+ {92CFD164-3E35-440A-85A7-A7F5A43B1B12}
+ Migration.Core.Storage.TestUtil
+
+
+
\ No newline at end of file
Index: Migration/Core/test/Migration.Core.Storage.TestUtil/TestVersionedFileMigrator.cs
===================================================================
diff -u -reff58ff5a88462462d9e3d406cb921323ffd5a10 -re96e647dc81e8ecefa335ae514b50f68aa280b9e
--- Migration/Core/test/Migration.Core.Storage.TestUtil/TestVersionedFileMigrator.cs (.../TestVersionedFileMigrator.cs) (revision eff58ff5a88462462d9e3d406cb921323ffd5a10)
+++ Migration/Core/test/Migration.Core.Storage.TestUtil/TestVersionedFileMigrator.cs (.../TestVersionedFileMigrator.cs) (revision e96e647dc81e8ecefa335ae514b50f68aa280b9e)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@@ -31,6 +32,12 @@
///
public class TestVersionedFileMigrator : VersionedFileMigrator
{
+ ///
+ /// Creates a new instance of the class.
+ ///
+ /// The comparer to use to compare versions.
+ /// Thrown when is
+ /// null.
public TestVersionedFileMigrator(IComparer comparer) : base(comparer) {}
protected override IEnumerable GetAvailableUpgradeScripts()
Index: Migration/Scripts/test/Migration.Scripts.Data.TestUtil/Migration.Scripts.Data.TestUtil.csproj
===================================================================
diff -u -r26906345dc00fdf928cf38a1356bd1b251c79422 -re96e647dc81e8ecefa335ae514b50f68aa280b9e
--- Migration/Scripts/test/Migration.Scripts.Data.TestUtil/Migration.Scripts.Data.TestUtil.csproj (.../Migration.Scripts.Data.TestUtil.csproj) (revision 26906345dc00fdf928cf38a1356bd1b251c79422)
+++ Migration/Scripts/test/Migration.Scripts.Data.TestUtil/Migration.Scripts.Data.TestUtil.csproj (.../Migration.Scripts.Data.TestUtil.csproj) (revision e96e647dc81e8ecefa335ae514b50f68aa280b9e)
@@ -45,7 +45,6 @@
-
Index: Migration/Scripts/test/Migration.Scripts.Data.TestUtil/TestCreateScript.cs
===================================================================
diff -u -r26906345dc00fdf928cf38a1356bd1b251c79422 -re96e647dc81e8ecefa335ae514b50f68aa280b9e
--- Migration/Scripts/test/Migration.Scripts.Data.TestUtil/TestCreateScript.cs (.../TestCreateScript.cs) (revision 26906345dc00fdf928cf38a1356bd1b251c79422)
+++ Migration/Scripts/test/Migration.Scripts.Data.TestUtil/TestCreateScript.cs (.../TestCreateScript.cs) (revision e96e647dc81e8ecefa335ae514b50f68aa280b9e)
@@ -47,5 +47,18 @@
Location = location
};
}
+
+ ///
+ /// Test class for .
+ ///
+ private class TestVersionedFile : IVersionedFile
+ {
+ public string Location { get; set; }
+
+ public string GetVersion()
+ {
+ return string.Empty;
+ }
+ }
}
}
\ No newline at end of file
Fisheye: Tag e96e647dc81e8ecefa335ae514b50f68aa280b9e refers to a dead (removed) revision in file `Migration/Scripts/test/Migration.Scripts.Data.TestUtil/TestVersionedFile.cs'.
Fisheye: No comparison available. Pass `N' to diff?