Index: Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/Riskeer.StabilityStoneCover.Data.Test.csproj
===================================================================
diff -u -rd0e327ebc28f8e3ef5ffa3c4da5f299b2f305381 -r31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4
--- Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/Riskeer.StabilityStoneCover.Data.Test.csproj (.../Riskeer.StabilityStoneCover.Data.Test.csproj) (revision d0e327ebc28f8e3ef5ffa3c4da5f299b2f305381)
+++ Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/Riskeer.StabilityStoneCover.Data.Test.csproj (.../Riskeer.StabilityStoneCover.Data.Test.csproj) (revision 31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4)
@@ -25,8 +25,11 @@
3.8.1
-
- 3.6.1
+
+ 4.4.0
+
+ 1.0.16
+
\ No newline at end of file
Index: Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/StabilityStoneCoverFailureMechanismTest.cs
===================================================================
diff -u -r9339a780307cdb21ebe38cbd3aa8811e2c98d980 -r31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4
--- Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/StabilityStoneCoverFailureMechanismTest.cs (.../StabilityStoneCoverFailureMechanismTest.cs) (revision 9339a780307cdb21ebe38cbd3aa8811e2c98d980)
+++ Riskeer/StabilityStoneCover/test/Riskeer.StabilityStoneCover.Data.Test/StabilityStoneCoverFailureMechanismTest.cs (.../StabilityStoneCoverFailureMechanismTest.cs) (revision 31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4)
@@ -22,7 +22,7 @@
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
-using Rhino.Mocks;
+using NSubstitute;
using Riskeer.Common.Data.Calculation;
using Riskeer.Common.Data.FailureMechanism;
@@ -59,7 +59,6 @@
public void Calculations_MultipleChildrenAdded_ReturnStabilityStoneCoverWaveConditionsCalculations()
{
// Setup
- var mocks = new MockRepository();
var failureMechanism = new StabilityStoneCoverFailureMechanism
{
CalculationsGroup =
@@ -68,21 +67,18 @@
{
new CalculationGroup(),
new StabilityStoneCoverWaveConditionsCalculation(),
- mocks.StrictMock(),
+ Substitute.For(),
new StabilityStoneCoverWaveConditionsCalculation()
}
}
};
- mocks.ReplayAll();
-
// Call
List calculations = failureMechanism.Calculations.ToList();
// Assert
Assert.AreEqual(2, calculations.Count);
Assert.IsTrue(calculations.All(c => c is StabilityStoneCoverWaveConditionsCalculation));
- mocks.VerifyAll();
}
}
}
\ No newline at end of file
Index: Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj
===================================================================
diff -u -rd0e327ebc28f8e3ef5ffa3c4da5f299b2f305381 -r31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4
--- Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj (.../Riskeer.WaveImpactAsphaltCover.Data.Test.csproj) (revision d0e327ebc28f8e3ef5ffa3c4da5f299b2f305381)
+++ Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/Riskeer.WaveImpactAsphaltCover.Data.Test.csproj (.../Riskeer.WaveImpactAsphaltCover.Data.Test.csproj) (revision 31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4)
@@ -22,8 +22,11 @@
3.8.1
-
- 3.6.1
+
+ 4.4.0
+
+ 1.0.16
+
\ No newline at end of file
Index: Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/WaveImpactAsphaltCoverFailureMechanismTest.cs
===================================================================
diff -u -r9339a780307cdb21ebe38cbd3aa8811e2c98d980 -r31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4
--- Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/WaveImpactAsphaltCoverFailureMechanismTest.cs (.../WaveImpactAsphaltCoverFailureMechanismTest.cs) (revision 9339a780307cdb21ebe38cbd3aa8811e2c98d980)
+++ Riskeer/WaveImpactAsphaltCover/test/Riskeer.WaveImpactAsphaltCover.Data.Test/WaveImpactAsphaltCoverFailureMechanismTest.cs (.../WaveImpactAsphaltCoverFailureMechanismTest.cs) (revision 31f2c71a7fda01e69ef2dc98eb248ef7d4b312c4)
@@ -22,7 +22,7 @@
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
-using Rhino.Mocks;
+using NSubstitute;
using Riskeer.Common.Data.Calculation;
using Riskeer.Common.Data.FailureMechanism;
@@ -59,7 +59,6 @@
public void Calculations_MultipleChildrenAdded_ReturnWaveImpactAsphaltCoverCalculations()
{
// Setup
- var mocks = new MockRepository();
var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism
{
CalculationsGroup =
@@ -68,21 +67,18 @@
{
new CalculationGroup(),
new WaveImpactAsphaltCoverWaveConditionsCalculation(),
- mocks.StrictMock(),
+ Substitute.For(),
new WaveImpactAsphaltCoverWaveConditionsCalculation()
}
}
};
- mocks.ReplayAll();
-
// Call
List calculations = failureMechanism.Calculations.ToList();
// Assert
Assert.AreEqual(2, calculations.Count);
Assert.IsTrue(calculations.All(c => c is WaveImpactAsphaltCoverWaveConditionsCalculation));
- mocks.VerifyAll();
}
}
}
\ No newline at end of file