Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs
===================================================================
diff -u -r66ee69642e1342ee03613d7d73831346f00d269c -rf1bd17ba95b3fbae5928d4240523d50d8b83b64d
--- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision 66ee69642e1342ee03613d7d73831346f00d269c)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/FailureMechanismContributionViewInfoTest.cs (.../FailureMechanismContributionViewInfoTest.cs) (revision f1bd17ba95b3fbae5928d4240523d50d8b83b64d)
@@ -1,5 +1,25 @@
-using System.Linq;
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+using System.Linq;
using Core.Common.Gui.Plugin;
using Core.Common.TestUtil;
using NUnit.Framework;
@@ -38,8 +58,6 @@
public void GetViewName_Always_ReturnsViewName()
{
// Setup
- mocks.ReplayAll();
-
var view = new FailureMechanismContributionView();
var failureMechanismContribution = new FailureMechanismContribution(Enumerable.Empty(), 30, 1000);
@@ -106,6 +124,7 @@
// Assert
Assert.AreSame(viewData, contribution);
+ mocks.VerifyAll();
}
[Test]
@@ -132,6 +151,7 @@
// Assert
Assert.IsTrue(closeForData);
+ mocks.VerifyAll();
}
[Test]
@@ -153,7 +173,6 @@
.Return(AssessmentSectionComposition.DikeAndDune);
mocks.ReplayAll();
-
var view = new FailureMechanismContributionView
{
Data = contribution1,
@@ -165,6 +184,7 @@
// Assert
Assert.IsFalse(closeForData);
+ mocks.VerifyAll();
}
[Test]
@@ -175,7 +195,7 @@
var assessmentSection = mocks.Stub();
assessmentSection.Stub(section => section.FailureMechanismContribution)
- .Return(contribution);
+ .Return(contribution);
mocks.ReplayAll();
var view = new FailureMechanismContributionView();
@@ -185,6 +205,7 @@
// Assert
Assert.IsFalse(closeForData);
+ mocks.VerifyAll();
}
}
}
\ No newline at end of file