예제 #1
0
        public void REALNullFlavorTest()
        {
            REAL r = new REAL();

            r.NullFlavor = NullFlavor.NotAsked;
            r.Value      = null;
            Assert.IsTrue(r.Validate());
        }
예제 #2
0
        public void REALValueNullFlavorTest()
        {
            REAL r = new REAL();

            r.NullFlavor = NullFlavor.NotAsked;
            r.Value      = 123456789.0987;
            Assert.IsFalse(r.Validate());
        }
예제 #3
0
        public void REALNullTest()
        {
            REAL r = new REAL();

            r.NullFlavor = null;
            r.Value      = null;
            Assert.IsFalse(r.Validate());
        }
예제 #4
0
        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());
        }
예제 #6
0
 public void REALNullFlavorTest()
 {
     REAL r = new REAL();
     r.NullFlavor = NullFlavor.NotAsked;
     r.Value = null;
     Assert.IsTrue(r.Validate());
 }
예제 #7
0
 public void REALValueNullFlavorTest()
 {
     REAL r = new REAL();
     r.NullFlavor = NullFlavor.NotAsked;
     r.Value = 123456789.0987; 
     Assert.IsFalse(r.Validate());
 }
예제 #8
0
 public void REALNullTest()
 {
     REAL r = new REAL();
     r.NullFlavor = null;
     r.Value = null;
     Assert.IsFalse(r.Validate());
 }
예제 #9
0
 public void REALValueTest()
 {
     REAL r = new REAL();
     r.NullFlavor = null;
     r.Value = 123456789.0987; 
     Assert.IsTrue(r.Validate());
 }