Index: Riskeer/Common/src/Riskeer.Common.IO/SoilProfile/SoilProfileWrapper.cs
===================================================================
diff -u -rda409bc4d9120bf437336482412f53b207655274 -r2f5a12c0b25bd1497f083863621c4d50ada22b38
--- Riskeer/Common/src/Riskeer.Common.IO/SoilProfile/SoilProfileWrapper.cs (.../SoilProfileWrapper.cs) (revision da409bc4d9120bf437336482412f53b207655274)
+++ Riskeer/Common/src/Riskeer.Common.IO/SoilProfile/SoilProfileWrapper.cs (.../SoilProfileWrapper.cs) (revision 2f5a12c0b25bd1497f083863621c4d50ada22b38)
@@ -25,7 +25,7 @@
namespace Riskeer.Common.IO.SoilProfile
{
///
- /// Wrapper class to link the with the .
+ /// Wrapper class to link an with a .
///
/// The type of soil profile to wrap.
public class SoilProfileWrapper
@@ -34,7 +34,7 @@
///
/// Creates a new instance of .
///
- /// The to wrap.
+ /// The soil profile to wrap.
/// The the soil profile is associated with.
/// Thrown when is null.
public SoilProfileWrapper(TSoilProfile soilProfile, FailureMechanismType failureMechanismType)
Index: Riskeer/Common/test/Riskeer.Common.IO.Test/SoilProfile/SoilProfileWrapperTest.cs
===================================================================
diff -u -rda409bc4d9120bf437336482412f53b207655274 -r2f5a12c0b25bd1497f083863621c4d50ada22b38
--- Riskeer/Common/test/Riskeer.Common.IO.Test/SoilProfile/SoilProfileWrapperTest.cs (.../SoilProfileWrapperTest.cs) (revision da409bc4d9120bf437336482412f53b207655274)
+++ Riskeer/Common/test/Riskeer.Common.IO.Test/SoilProfile/SoilProfileWrapperTest.cs (.../SoilProfileWrapperTest.cs) (revision 2f5a12c0b25bd1497f083863621c4d50ada22b38)
@@ -22,6 +22,7 @@
using System;
using Core.Common.TestUtil;
using NUnit.Framework;
+using Rhino.Mocks;
using Riskeer.Common.IO.SoilProfile;
using Riskeer.Common.IO.SoilProfile.Schema;
@@ -38,7 +39,7 @@
var failureMechanismType = random.NextEnumValue();
// Call
- void Call() => new SoilProfileWrapper(null, failureMechanismType);
+ void Call() => new SoilProfileWrapper(null, failureMechanismType);
// Assert
var exception = Assert.Throws(Call);
@@ -52,19 +53,17 @@
var random = new Random(21);
var failureMechanismType = random.NextEnumValue();
- var soilProfile = new TestSoilProfile();
+ var mocks = new MockRepository();
+ var soilProfile = mocks.Stub();
+ mocks.ReplayAll();
// Call
- var wrapper = new SoilProfileWrapper(soilProfile, failureMechanismType);
+ var wrapper = new SoilProfileWrapper(soilProfile, failureMechanismType);
// Assert
Assert.AreSame(soilProfile, wrapper.SoilProfile);
Assert.AreEqual(failureMechanismType, wrapper.FailureMechanismType);
+ mocks.VerifyAll();
}
-
- private class TestSoilProfile : ISoilProfile
- {
- public string Name { get; }
- }
}
}
\ No newline at end of file