public void CreateDefault()
        {
            var css = new CrossSectionDefinitionStandard();

            Assert.AreEqual(css.Shape.GetType(), typeof(CrossSectionStandardShapeRound));

            var round = css.Shape as CrossSectionStandardShapeRound;

            Assert.Greater(round.Diameter, 0.0);
        }
        public void MakeLocalAddsLevelShift()
        {
            var innerDefinition = new CrossSectionDefinitionStandard();

            innerDefinition.LevelShift = 2;

            var proxyDefinition = new CrossSectionDefinitionProxy(innerDefinition);
            var crossSection    = new CrossSection(proxyDefinition);

            proxyDefinition.LevelShift = 5;

            //unproxy the cs should add up the level shift
            crossSection.MakeDefinitionLocal();

            Assert.IsTrue(crossSection.Definition is CrossSectionDefinitionStandard);
            Assert.AreEqual(7, ((CrossSectionDefinitionStandard)crossSection.Definition).LevelShift);
        }