public void CreateGeneralResultSubMechanismIllustrationPointEntity_ValidGeneralResultWithIllustrationPoints_ReturnsEntityWithTopLevelSubMechanismIllustrationPointEntities() { // Setup var random = new Random(21); var generalResult = new GeneralResult <TopLevelSubMechanismIllustrationPoint>( new WindDirection("SSE", random.NextDouble()), Enumerable.Empty <SubMechanismIllustrationPointStochast>(), new[] { new TopLevelSubMechanismIllustrationPoint(WindDirectionTestFactory.CreateTestWindDirection(), "IllustrationPointOne", new TestSubMechanismIllustrationPoint()), new TopLevelSubMechanismIllustrationPoint(WindDirectionTestFactory.CreateTestWindDirection(), "IllustrationPointTwo", new TestSubMechanismIllustrationPoint()) }); // Call GeneralResultSubMechanismIllustrationPointEntity entity = generalResult.CreateGeneralResultSubMechanismIllustrationPointEntity(); // Assert AssertGeneralResultSubMechanismIllustrationPointEntity(generalResult, entity); }
public void CreateGeneralResultSubMechanismIllustrationPointEntity_ValidGeneralResult_ReturnsEntityWithoutStochastsAndTopLevelSubMechanismIllustrationPointEntities() { // Setup var random = new Random(21); var generalResult = new GeneralResult <TopLevelSubMechanismIllustrationPoint>( new WindDirection("SSE", random.NextDouble()), Enumerable.Empty <Stochast>(), Enumerable.Empty <TopLevelSubMechanismIllustrationPoint>()); // Call GeneralResultSubMechanismIllustrationPointEntity entity = generalResult.CreateGeneralResultSubMechanismIllustrationPointEntity(); // Assert AssertGeneralResultSubMechanismIllustrationPointEntity(generalResult, entity); }