public void AmountToStandardUnitConverter_InstanceUnit_ReturnsGigaTimesOriginalValue() { var expected = AmountConverter.ToAmountType(1.0e9); var actual = this.instance.ConvertAmountToStandardUnit(AmountConverter.ToAmountType(1.0)); AmountAssert.AreEqual(expected, actual); }
public static void AreEqual <Q1, Q2>(IMeasureDoublet <Q1, Q2> expected, IMeasureDoublet <Q1, Q2> actual) where Q1 : struct, IQuantity <Q1> where Q2 : struct, IQuantity <Q2> { Assert.AreEqual(expected.X.Unit, actual.X.Unit); Assert.AreEqual(expected.Y.Unit, actual.Y.Unit); AmountAssert.AreEqual(expected.X.Amount, actual.X.Amount); AmountAssert.AreEqual(expected.Y.Amount, actual.Y.Amount); }