public void testQuantity() { long expectedValue = 1; IUnit expectedUnit = Units.Byte; var q = new Int64Quantity(expectedValue, expectedUnit); Assert.AreEqual(expectedValue, q.Value); Assert.AreEqual(expectedUnit, q.Unit); }
public void testToString() { String asString = new Int64Quantity(1, Units.Byte).ToString(); Assert.NotNull(asString); Assert.False(String.IsNullOrEmpty(asString)); }