예제 #1
0
 public static Density KilogramsPerLiter <T>(this T value) =>
 Density.FromKilogramsPerLiter(Convert.ToDouble(value));
 public void NumberToKilogramsPerLiterTest() =>
 Assert.Equal(Density.FromKilogramsPerLiter(2), 2.KilogramsPerLiter());