Beispiel #1
0
 private static MacroStabilityInwardsWaternetLine ConvertWaternetLine(WaternetLineResult waternetLine,
                                                                      IDictionary <WaternetPhreaticLineResult, MacroStabilityInwardsPhreaticLine> phreaticLines)
 {
     return(new MacroStabilityInwardsWaternetLine(waternetLine.Name,
                                                  waternetLine.Geometry,
                                                  phreaticLines[waternetLine.PhreaticLine]));
 }
        public void Constructor_ExpectedValues()
        {
            // Setup
            var phreaticLines = new WaternetPhreaticLineResult[0];
            var waternetLines = new WaternetLineResult[0];

            // Call
            var result = new WaternetCalculatorResult(phreaticLines, waternetLines);

            // Assert
            Assert.AreSame(phreaticLines, result.PhreaticLines);
            Assert.AreSame(waternetLines, result.WaternetLines);
        }
Beispiel #3
0
        public void Constructor_ExpectedValues()
        {
            // Setup
            const string name     = "Line";
            var          geometry = new[]
            {
                new Point2D(0, 0),
                new Point2D(1, 1)
            };
            var phreaticLine = new WaternetPhreaticLineResult("test", new Point2D[0]);

            // Call
            var waternetLine = new WaternetLineResult(name, geometry, phreaticLine);

            // Assert
            Assert.AreEqual(name, waternetLine.Name);
            Assert.AreSame(geometry, waternetLine.Geometry);
            Assert.AreSame(phreaticLine, waternetLine.PhreaticLine);
        }