public void NumberToCentigramsPerMicroliterTest() =>
 Assert.Equal(MassConcentration.FromCentigramsPerMicroliter(2), 2.CentigramsPerMicroliter());
 public void NumberToDecigramsPerMilliliterTest() =>
 Assert.Equal(MassConcentration.FromDecigramsPerMilliliter(2), 2.DecigramsPerMilliliter());
 public void NumberToSlugsPerCubicFootTest() =>
 Assert.Equal(MassConcentration.FromSlugsPerCubicFoot(2), 2.SlugsPerCubicFoot());
 public void NumberToTonnesPerCubicMillimeterTest() =>
 Assert.Equal(MassConcentration.FromTonnesPerCubicMillimeter(2), 2.TonnesPerCubicMillimeter());
 public void NumberToPoundsPerCubicInchTest() =>
 Assert.Equal(MassConcentration.FromPoundsPerCubicInch(2), 2.PoundsPerCubicInch());
 public void NumberToPoundsPerUSGallonTest() =>
 Assert.Equal(MassConcentration.FromPoundsPerUSGallon(2), 2.PoundsPerUSGallon());
 public void NumberToOuncesPerUSGallonTest() =>
 Assert.Equal(MassConcentration.FromOuncesPerUSGallon(2), 2.OuncesPerUSGallon());
 public void NumberToPicogramsPerLiterTest() =>
 Assert.Equal(MassConcentration.FromPicogramsPerLiter(2), 2.PicogramsPerLiter());
 public void NumberToMilligramsPerLiterTest() =>
 Assert.Equal(MassConcentration.FromMilligramsPerLiter(2), 2.MilligramsPerLiter());
 public void NumberToNanogramsPerDeciliterTest() =>
 Assert.Equal(MassConcentration.FromNanogramsPerDeciliter(2), 2.NanogramsPerDeciliter());
 public void NumberToMicrogramsPerCubicMeterTest() =>
 Assert.Equal(MassConcentration.FromMicrogramsPerCubicMeter(2), 2.MicrogramsPerCubicMeter());
 public void NumberToKilopoundsPerCubicFootTest() =>
 Assert.Equal(MassConcentration.FromKilopoundsPerCubicFoot(2), 2.KilopoundsPerCubicFoot());
 public void NumberToKilogramsPerCubicMillimeterTest() =>
 Assert.Equal(MassConcentration.FromKilogramsPerCubicMillimeter(2), 2.KilogramsPerCubicMillimeter());
 public void NumberToGramsPerCubicCentimeterTest() =>
 Assert.Equal(MassConcentration.FromGramsPerCubicCentimeter(2), 2.GramsPerCubicCentimeter());
Beispiel #15
0
        public void DefaultSIUnitIsKgPerCubicMeter()
        {
            var massConcentration = new MassConcentration(1, UnitSystem.SI);

            Assert.Equal(MassConcentrationUnit.KilogramPerCubicMeter, massConcentration.Unit); // MassConcentration.BaseUnit = KilogramPerCubicMeter
        }