Esempio n. 1
0
        public void ConversionRoundTrip()
        {
            Permeance perm = Permeance.FromPerms(1);

            AssertEx.EqualTolerance(1, Permeance.FromGrainsPerHourSquareFootInchOfMercurys(perm.GrainsPerHourSquareFootInchOfMercurys).Perms, GrainsPerHourSquareFootInchOfMercurysTolerance);
            AssertEx.EqualTolerance(1, Permeance.FromPerms(perm.Perms).Perms, PermsTolerance);
        }
 public static Permeance GrainsPerHourSquareFootInchOfMercurys <T>(this T value) =>
 Permeance.FromGrainsPerHourSquareFootInchOfMercurys(Convert.ToDouble(value));
 public void NumberToGrainsPerHourSquareFootInchOfMercurysTest() =>
 Assert.Equal(Permeance.FromGrainsPerHourSquareFootInchOfMercurys(2), 2.GrainsPerHourSquareFootInchOfMercurys());