Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Categories/AssessmentSectionAssemblyGroupBoundariesCalculatorTest.cs =================================================================== diff -u -rc1d5b96171def3fe5554366dd6229d907ffcf122 -r39df33e5578903cd4051f3a97df7b85babca25e0 --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Categories/AssessmentSectionAssemblyGroupBoundariesCalculatorTest.cs (.../AssessmentSectionAssemblyGroupBoundariesCalculatorTest.cs) (revision c1d5b96171def3fe5554366dd6229d907ffcf122) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Categories/AssessmentSectionAssemblyGroupBoundariesCalculatorTest.cs (.../AssessmentSectionAssemblyGroupBoundariesCalculatorTest.cs) (revision 39df33e5578903cd4051f3a97df7b85babca25e0) @@ -22,6 +22,7 @@ using System; using System.Collections.Generic; using Assembly.Kernel.Exceptions; +using Assembly.Kernel.Model; using Assembly.Kernel.Model.Categories; using Core.Common.TestUtil; using NUnit.Framework; @@ -78,7 +79,7 @@ { var factory = (TestAssemblyToolKernelFactory) AssemblyToolKernelFactory.Instance; AssemblyCategoryLimitsKernelStub kernel = factory.LastCreatedAssemblyCategoryLimitsKernel; - kernel.AssessmentSectionCategoryLimits = CategoriesListTestFactory.CreateAssessmentSectionCategories(); + kernel.AssessmentSectionCategoryLimits = CreateCategoryLimits(); var calculator = new AssessmentSectionAssemblyGroupBoundariesCalculator(factory); @@ -98,7 +99,7 @@ var random = new Random(11); double lowerLimitNorm = random.NextDouble(0.5, 1.0); double signalingNorm = random.NextDouble(0.0, 0.5); - CategoriesList output = CategoriesListTestFactory.CreateAssessmentSectionCategories(); + CategoriesList output = CreateCategoryLimits(); using (new AssemblyToolKernelFactoryConfig()) { @@ -170,5 +171,18 @@ }), exception.Message); } } + + private static CategoriesList CreateCategoryLimits() + { + var random = new Random(21); + + return new CategoriesList(new[] + { + new AssessmentSectionCategory(random.NextEnumValue(), new Probability(0), new Probability(0.25)), + new AssessmentSectionCategory(random.NextEnumValue(), new Probability(0.25), new Probability(0.5)), + new AssessmentSectionCategory(random.NextEnumValue(), new Probability(0.5), new Probability(0.75)), + new AssessmentSectionCategory(random.NextEnumValue(), new Probability(0.75), new Probability(1.0)) + }); + } } } \ No newline at end of file Fisheye: Tag 39df33e5578903cd4051f3a97df7b85babca25e0 refers to a dead (removed) revision in file `Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.TestUtil/CategoriesListTestFactory.cs'. Fisheye: No comparison available. Pass `N' to diff?