Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void testToString()
 {
     String asString = new Int64Quantity(1, Units.Byte).ToString();
     Assert.NotNull(asString);
     Assert.False(String.IsNullOrEmpty(asString));
 }