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); }
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); }