Fisheye: Tag a8472ae654246e68f019e682dbf53ea61ac615de refers to a dead (removed) revision in file `Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.Forms/DisplayFailureMechanismSectionAssemblyCategoryGroupConverter.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag a8472ae654246e68f019e682dbf53ea61ac615de refers to a dead (removed) revision in file `Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.Forms.Test/DisplayFailureMechanismSectionAssemblyCategoryGroupConverterTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Riskeer/Common/test/Riskeer.Common.Forms.TestUtil/MapFeaturesTestHelper.cs =================================================================== diff -u -r26259e86f36858575c3307e3a97602a899026bbf -ra8472ae654246e68f019e682dbf53ea61ac615de --- Riskeer/Common/test/Riskeer.Common.Forms.TestUtil/MapFeaturesTestHelper.cs (.../MapFeaturesTestHelper.cs) (revision 26259e86f36858575c3307e3a97602a899026bbf) +++ Riskeer/Common/test/Riskeer.Common.Forms.TestUtil/MapFeaturesTestHelper.cs (.../MapFeaturesTestHelper.cs) (revision a8472ae654246e68f019e682dbf53ea61ac615de) @@ -22,16 +22,11 @@ using System.Collections.Generic; using System.Linq; using Core.Common.Base.Data; -using Core.Common.Util; using Core.Components.Gis.Features; using NUnit.Framework; -using Riskeer.AssemblyTool.Data; -using Riskeer.AssemblyTool.Forms; using Riskeer.Common.Data.AssessmentSection; -using Riskeer.Common.Data.FailureMechanism; using Riskeer.Common.Data.Hydraulics; using Riskeer.Common.Forms.Helpers; -using Riskeer.Common.Forms.TypeConverters; using Riskeer.Common.Util.Helpers; using Riskeer.Common.Util.TestUtil; @@ -42,9 +37,6 @@ /// public static class MapFeaturesTestHelper { - private const string categoryMetaData = "Categorie"; - private const string probabilityMetaData = "Faalkans"; - /// /// Asserts whether contains the data that is representative for the data of /// hydraulic boundary locations and calculations in . @@ -97,74 +89,6 @@ } /// - /// Asserts whether contains the data that is representative for the data - /// in and . - /// - /// The expected . - /// The failure mechanism that contains the sections. - /// The features that need to be asserted. - /// Thrown when: - /// - /// the number of sections and features are not the same; - /// the properties of a section and the are not the same as - /// the one in the features. - /// - /// - public static void AssertAssemblyMapFeatures(FailureMechanismSectionAssemblyOld expectedAssembly, - IFailureMechanism failureMechanism, - IEnumerable features) - { - IEnumerable sections = failureMechanism.Sections; - Assert.AreEqual(sections.Count(), features.Count()); - - for (var i = 0; i < features.Count(); i++) - { - FailureMechanismSection section = sections.ElementAt(i); - Assert.AreEqual(1, features.ElementAt(i).MapGeometries.Count()); - CollectionAssert.AreEqual(section.Points, features.ElementAt(i).MapGeometries.Single().PointCollections.Single()); - Assert.AreEqual(2, features.ElementAt(i).MetaData.Keys.Count); - Assert.AreEqual(new EnumDisplayWrapper( - DisplayFailureMechanismSectionAssemblyCategoryGroupConverter.Convert(expectedAssembly.Group)).DisplayName, - features.ElementAt(i).MetaData[categoryMetaData]); - Assert.AreEqual(new NoProbabilityValueDoubleConverter().ConvertToString(expectedAssembly.Probability), - features.ElementAt(i).MetaData[probabilityMetaData]); - } - } - - /// - /// Asserts whether contains the data that is representative for the data - /// in and . - /// - /// The expected . - /// The failure mechanism that contains the sections. - /// The features that need to be asserted. - /// Thrown when: - /// - /// the number of sections and features are not the same; - /// the properties of a section and the are not the same as - /// the one in the features. - /// - /// - public static void AssertAssemblyCategoryGroupMapFeatures(FailureMechanismSectionAssemblyCategoryGroup expectedCategoryGroup, - IFailureMechanism failureMechanism, - IEnumerable features) - { - IEnumerable sections = failureMechanism.Sections; - Assert.AreEqual(sections.Count(), features.Count()); - - for (var i = 0; i < features.Count(); i++) - { - FailureMechanismSection section = sections.ElementAt(i); - Assert.AreEqual(1, features.ElementAt(i).MapGeometries.Count()); - CollectionAssert.AreEqual(section.Points, features.ElementAt(i).MapGeometries.Single().PointCollections.Single()); - Assert.AreEqual(1, features.ElementAt(i).MetaData.Keys.Count); - Assert.AreEqual(new EnumDisplayWrapper( - DisplayFailureMechanismSectionAssemblyCategoryGroupConverter.Convert(expectedCategoryGroup)).DisplayName, - features.ElementAt(i).MetaData[categoryMetaData]); - } - } - - /// /// Asserts whether the contains the meta data that is representative for the . /// /// The reference line that contains the original data.