Exemple #1
0
        public void GetVolumeForConusByTopDAndHeight()
        {
            var dim = Dimension.Conus(topDiam: 2, height: 1);

            Assert.AreEqual(2.2, dim.AutoVolume, 0.1);
            Assert.AreEqual(2.2, dim.Volume.Value, 0.1);
        }
Exemple #2
0
        public void GetVolumeForConus()
        {
            var dim = Dimension.Conus(topDiam: 2, bottomDiam: 4, height: 1);

            Assert.AreEqual(7.3, dim.AutoVolume, 0.1);
            Assert.AreEqual(7.3, dim.Volume.Value, 0.1);
        }