public void ConversionRoundTrip()
        {
            Energy joule = Energy.FromJoules(1);

            AssertEx.EqualTolerance(1, Energy.FromBritishThermalUnits(joule.BritishThermalUnits).Joules, BritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromCalories(joule.Calories).Joules, CaloriesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromDecathermsEc(joule.DecathermsEc).Joules, DecathermsEcTolerance);
            AssertEx.EqualTolerance(1, Energy.FromDecathermsImperial(joule.DecathermsImperial).Joules, DecathermsImperialTolerance);
            AssertEx.EqualTolerance(1, Energy.FromDecathermsUs(joule.DecathermsUs).Joules, DecathermsUsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromElectronVolts(joule.ElectronVolts).Joules, ElectronVoltsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromErgs(joule.Ergs).Joules, ErgsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromExabritishThermalUnits(joule.ExabritishThermalUnits).Joules, ExabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromExajoules(joule.Exajoules).Joules, ExajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromExawattHours(joule.ExawattHours).Joules, ExawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromFootPounds(joule.FootPounds).Joules, FootPoundsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromGigabritishThermalUnits(joule.GigabritishThermalUnits).Joules, GigabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromGigajoules(joule.Gigajoules).Joules, GigajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromGigawattHours(joule.GigawattHours).Joules, GigawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromJoules(joule.Joules).Joules, JoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromKilobritishThermalUnits(joule.KilobritishThermalUnits).Joules, KilobritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromKilocalories(joule.Kilocalories).Joules, KilocaloriesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromKilojoules(joule.Kilojoules).Joules, KilojoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromKilowattHours(joule.KilowattHours).Joules, KilowattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromMegabritishThermalUnits(joule.MegabritishThermalUnits).Joules, MegabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromMegajoules(joule.Megajoules).Joules, MegajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromMegawattHours(joule.MegawattHours).Joules, MegawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromPetabritishThermalUnits(joule.PetabritishThermalUnits).Joules, PetabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromPetajoules(joule.Petajoules).Joules, PetajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromPetawattHours(joule.PetawattHours).Joules, PetawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromQutrabritishThermalUnits(joule.QutrabritishThermalUnits).Joules, QutrabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromQutrajoules(joule.Qutrajoules).Joules, QutrajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromQutrawattHours(joule.QutrawattHours).Joules, QutrawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromTerabritishThermalUnits(joule.TerabritishThermalUnits).Joules, TerabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromTerajoules(joule.Terajoules).Joules, TerajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromTerawattHours(joule.TerawattHours).Joules, TerawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromThermsEc(joule.ThermsEc).Joules, ThermsEcTolerance);
            AssertEx.EqualTolerance(1, Energy.FromThermsImperial(joule.ThermsImperial).Joules, ThermsImperialTolerance);
            AssertEx.EqualTolerance(1, Energy.FromThermsUs(joule.ThermsUs).Joules, ThermsUsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromVettabritishThermalUnits(joule.VettabritishThermalUnits).Joules, VettabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromVettajoules(joule.Vettajoules).Joules, VettajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromVettawattHours(joule.VettawattHours).Joules, VettawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromWattHours(joule.WattHours).Joules, WattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromYottabritishThermalUnits(joule.YottabritishThermalUnits).Joules, YottabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromYottajoules(joule.Yottajoules).Joules, YottajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromYottawattHours(joule.YottawattHours).Joules, YottawattHoursTolerance);
            AssertEx.EqualTolerance(1, Energy.FromZettabritishThermalUnits(joule.ZettabritishThermalUnits).Joules, ZettabritishThermalUnitsTolerance);
            AssertEx.EqualTolerance(1, Energy.FromZettajoules(joule.Zettajoules).Joules, ZettajoulesTolerance);
            AssertEx.EqualTolerance(1, Energy.FromZettawattHours(joule.ZettawattHours).Joules, ZettawattHoursTolerance);
        }