Esempio n. 1
0
        public void ConversionRoundTrip()
        {
            AreaDensity kilogrampersquaremeter = AreaDensity.FromKilogramsPerSquareMeter(1);

            AssertEx.EqualTolerance(1, AreaDensity.FromGramPerSquareMeters(kilogrampersquaremeter.GramPerSquareMeters).KilogramsPerSquareMeter, GramPerSquareMetersTolerance);
            AssertEx.EqualTolerance(1, AreaDensity.FromKilogramPerSquareCentimeters(kilogrampersquaremeter.KilogramPerSquareCentimeters).KilogramsPerSquareMeter, KilogramPerSquareCentimetersTolerance);
            AssertEx.EqualTolerance(1, AreaDensity.FromKilogramsPerSquareMeter(kilogrampersquaremeter.KilogramsPerSquareMeter).KilogramsPerSquareMeter, KilogramsPerSquareMeterTolerance);
            AssertEx.EqualTolerance(1, AreaDensity.FromKipsPerSquareFoots(kilogrampersquaremeter.KipsPerSquareFoots).KilogramsPerSquareMeter, KipsPerSquareFootsTolerance);
            AssertEx.EqualTolerance(1, AreaDensity.FromKipsPerSquareInchs(kilogrampersquaremeter.KipsPerSquareInchs).KilogramsPerSquareMeter, KipsPerSquareInchsTolerance);
        }
Esempio n. 2
0
 public void NumberToKipsPerSquareInchsTest() =>
 Assert.Equal(AreaDensity.FromKipsPerSquareInchs(2), 2.KipsPerSquareInchs());