Index: Core/Common/test/Core.Common.TestUtil/DataGridViewTestHelper.cs
===================================================================
diff -u -r6badc3eccf485d334217250d2e261e18dfc86727 -r1ede9dbca0e72cd0dc425d8a68c807d78ab405e2
--- Core/Common/test/Core.Common.TestUtil/DataGridViewTestHelper.cs (.../DataGridViewTestHelper.cs) (revision 6badc3eccf485d334217250d2e261e18dfc86727)
+++ Core/Common/test/Core.Common.TestUtil/DataGridViewTestHelper.cs (.../DataGridViewTestHelper.cs) (revision 1ede9dbca0e72cd0dc425d8a68c807d78ab405e2)
@@ -21,7 +21,6 @@
using System;
using System.Collections.Generic;
-using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using Core.Common.Util.Reflection;
@@ -92,40 +91,5 @@
Assert.AreEqual(expectedFormattedValues.ElementAt(i), cell.FormattedValue);
}
}
-
- ///
- /// Asserts whether a is in a disabled state.
- ///
- /// The cell that needs to be asserted.
- /// Thrown when:
- ///
- /// - The readonly property of the cell is false.
- /// - The is not .
- /// - The is not .
- ///
- public static void AssertCellIsDisabled(DataGridViewCell dataGridViewCell)
- {
- Assert.AreEqual(true, dataGridViewCell.ReadOnly);
- Assert.AreEqual(Color.FromKnownColor(KnownColor.GrayText), dataGridViewCell.Style.ForeColor);
- Assert.AreEqual(Color.FromKnownColor(KnownColor.DarkGray), dataGridViewCell.Style.BackColor);
- }
-
- ///
- /// Asserts whether a is in an enabled state.
- ///
- /// The cell that needs to be asserted.
- /// Flag indicating whether the cell is readonly.
- /// Thrown when:
- ///
- /// - The readonly property of the cell does not match with .
- /// - The is not .
- /// - The is not .
- ///
- public static void AssertCellIsEnabled(DataGridViewCell dataGridViewCell, bool isReadOnly = false)
- {
- Assert.AreEqual(isReadOnly, dataGridViewCell.ReadOnly);
- Assert.AreEqual(Color.FromKnownColor(KnownColor.ControlText), dataGridViewCell.Style.ForeColor);
- Assert.AreEqual(Color.FromKnownColor(KnownColor.White), dataGridViewCell.Style.BackColor);
- }
}
}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs
===================================================================
diff -u -r26ee4ff0515942af0d34790c13a16ac78f67e891 -r1ede9dbca0e72cd0dc425d8a68c807d78ab405e2
--- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs (.../AssessmentSectionViewInfoTest.cs) (revision 26ee4ff0515942af0d34790c13a16ac78f67e891)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/AssessmentSectionViewInfoTest.cs (.../AssessmentSectionViewInfoTest.cs) (revision 1ede9dbca0e72cd0dc425d8a68c807d78ab405e2)
@@ -24,7 +24,6 @@
using Core.Common.Gui.Plugin;
using Core.Common.TestUtil;
using NUnit.Framework;
-using Rhino.Mocks;
using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Integration.Forms.Views;
using RingtoetsFormsResources = Ringtoets.Integration.Forms.Properties.Resources;
@@ -34,14 +33,12 @@
[TestFixture]
public class AssessmentSectionViewInfoTest
{
- private MockRepository mocks;
private RingtoetsPlugin plugin;
private ViewInfo info;
[SetUp]
public void SetUp()
{
- mocks = new MockRepository();
plugin = new RingtoetsPlugin();
info = plugin.GetViewInfos().First(tni => tni.ViewType == typeof(AssessmentSectionView));
}