public void REALNullFlavorTest() { REAL r = new REAL(); r.NullFlavor = NullFlavor.NotAsked; r.Value = null; Assert.IsTrue(r.Validate()); }
public void REALValueNullFlavorTest() { REAL r = new REAL(); r.NullFlavor = NullFlavor.NotAsked; r.Value = 123456789.0987; Assert.IsFalse(r.Validate()); }
public void REALNullTest() { REAL r = new REAL(); r.NullFlavor = null; r.Value = null; Assert.IsFalse(r.Validate()); }
public void REALValueTest() { REAL r = new REAL(); r.NullFlavor = null; r.Value = 123456789.0987; Assert.IsTrue(r.Validate()); }
public void ArOpsTest01() { INT heightCm = 180; INT weightKg = 60; INT bmiInt = weightKg / (heightCm * heightCm); REAL bmi = (REAL)(weightKg / (heightCm * heightCm)); Console.WriteLine("BMI Int: " + bmiInt.ToString()); Console.WriteLine("BMI Real: " + bmi.ToString()); Assert.IsTrue(bmiInt.Validate()); Assert.IsTrue(bmi.Validate()); }