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