public void ConversionRoundTrip() { Luminance candelapersquaremeter = Luminance.FromCandelaPerSquareMeters(1); AssertEx.EqualTolerance(1, Luminance.FromCandelaPerSquareMeters(candelapersquaremeter.CandelaPerSquareMeters).CandelaPerSquareMeters, CandelaPerSquareMetersTolerance); AssertEx.EqualTolerance(1, Luminance.FromFootLamberts(candelapersquaremeter.FootLamberts).CandelaPerSquareMeters, FootLambertsTolerance); }
public void NumberToFootLambertsTest() => Assert.Equal(Luminance.FromFootLamberts(2), 2.FootLamberts());