public void VolumeDividedByAreaEqualsLength() { Volume volume = new CubicMetres(1); Area area = new SquareMetres(1); Length length = volume / area; Assert.AreEqual(1, length, 1e-6); }
public void AreaTimesLengthEqualsVolume() { Area area = new SquareMetres(1); Length length = new Metres(1); Volume volume = area * length; Assert.AreEqual(1, volume, 1e-6); }
public void LengthTimesAreaEqualsVolume() { Area area = new SquareMetres(1); Length length = new Metres(1); Volume volume = length * area; Assert.AreEqual(1, volume, 1e-6); }
public int CompareTo(Area other) => SquareMetres.CompareTo(other.SquareMetres);