Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of <see cref="TestGeneralResult"/>.
 /// </summary>
 public TestGeneralResult()
     : base(0,
            WindDirectionTestFactory.CreateWindDirection(),
            Enumerable.Empty <Stochast>(),
            new Dictionary <WindDirectionClosingSituation, IllustrationPointTreeNode>())
 {
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of <see cref="TestGeneralResult"/> with only sub mechanism
        /// illustration points.
        /// </summary>
        /// <returns>A <see cref="TestGeneralResult"/> with sub mechanism illustration points.</returns>
        public static TestGeneralResult CreateGeneralResultWithSubMechanismIllustrationPoints()
        {
            var generalResult = new TestGeneralResult();

            generalResult.IllustrationPoints.Add(new WindDirectionClosingSituation(WindDirectionTestFactory.CreateWindDirection(), "closing situation"),
                                                 new IllustrationPointTreeNode(new TestSubMechanismIllustrationPoint()));

            return(generalResult);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a new instance of <see cref="GeneralResult"/> with duplicate stochasts.
        /// </summary>
        /// <returns>A <see cref="GeneralResult"/> with duplicate stochasts.</returns>
        public static GeneralResult CreateGeneralResultWithDuplicateStochasts()
        {
            var stochast = new Stochast("Stochast A", 0, 0);

            return(new GeneralResult(0.5,
                                     WindDirectionTestFactory.CreateWindDirection(),
                                     new[]
            {
                stochast,
                stochast
            },
                                     new Dictionary <WindDirectionClosingSituation, IllustrationPointTreeNode>()));
        }