public void CreateGeneralResultFaultTreeIllustrationPointEntity_ValidGeneralResultsWithIllustrationPoints_ReturnsEntityWithTopLevelFaultTreeIllustrationPointEntities() { // Setup var random = new Random(22); var generalResult = new GeneralResult <TopLevelFaultTreeIllustrationPoint>( new WindDirection("SSE", random.NextDouble()), Enumerable.Empty <Stochast>(), new[] { new TopLevelFaultTreeIllustrationPoint( WindDirectionTestFactory.CreateTestWindDirection(), "IllustrationPointOne", new IllustrationPointNode(FaultTreeIllustrationPointTestFactory.CreateTestFaultTreeIllustrationPoint())), new TopLevelFaultTreeIllustrationPoint( WindDirectionTestFactory.CreateTestWindDirection(), "IllustrationPointTwo", new IllustrationPointNode(FaultTreeIllustrationPointTestFactory.CreateTestFaultTreeIllustrationPoint())) }); // Call GeneralResultFaultTreeIllustrationPointEntity entity = generalResult.CreateGeneralResultFaultTreeIllustrationPointEntity(); // Assert AssertGeneralResultFaultTreeIllustrationPointEntity(generalResult, entity); }
public void CreateGeneralResultFaultTreeIllustrationPointEntity_ValidGeneralResult_ReturnsExpectedGeneralResultFaultTreeIllustrationPointEntity() { // Setup var random = new Random(21); var generalResult = new GeneralResult <TopLevelFaultTreeIllustrationPoint>( new WindDirection("SSE", random.NextDouble()), Enumerable.Empty <Stochast>(), Enumerable.Empty <TopLevelFaultTreeIllustrationPoint>()); // Call GeneralResultFaultTreeIllustrationPointEntity entity = generalResult.CreateGeneralResultFaultTreeIllustrationPointEntity(); // Assert AssertGeneralResultFaultTreeIllustrationPointEntity(generalResult, entity); }
public void CreateGeneralResultFaultTreeIllustrationPointEntity_ValidGeneralResultWithStochasts_ReturnsEntityWithStochastsEntities() { // Setup var random = new Random(22); var generalResult = new GeneralResult <TopLevelFaultTreeIllustrationPoint>( new WindDirection("SSE", random.NextDouble()), new[] { new Stochast("stochastOne", random.NextDouble(), random.NextDouble()), new Stochast("stochastTwo", random.NextDouble(), random.NextDouble()) }, Enumerable.Empty <TopLevelFaultTreeIllustrationPoint>()); // Call GeneralResultFaultTreeIllustrationPointEntity entity = generalResult.CreateGeneralResultFaultTreeIllustrationPointEntity(); // Assert AssertGeneralResultFaultTreeIllustrationPointEntity(generalResult, entity); }