Exemplo n.º 1
0
        public void AreaOfStraightProfiles()
        {
            var upper = new ICoordinate[] { new Coordinate(0, 0), new Coordinate(1, 0), new Coordinate(2, 0), new Coordinate(3, 0) };
            var lower = new ICoordinate[] { new Coordinate(0, 3), new Coordinate(1, 3), new Coordinate(2, 3), new Coordinate(3, 3) };

            Assert.AreEqual(9.0, CrossSectionHelper.CalculateStorageArea(lower, upper));
        }
Exemplo n.º 2
0
        public void AreaOfLine()
        {
            var upper = new ICoordinate[] { new Coordinate(0, 0) };
            var lower = new ICoordinate[] { new Coordinate(0, 3) };

            Assert.AreEqual(0.0, CrossSectionHelper.CalculateStorageArea(lower, upper));
        }
Exemplo n.º 3
0
        public void AreaOfEmptyProfiles()
        {
            var upper = new ICoordinate[] {};
            var lower = new ICoordinate[] { };

            Assert.AreEqual(0.0, CrossSectionHelper.CalculateStorageArea(lower, upper));
        }