Beispiel #1
0
        public void UVPNullAttributesTest()
        {
            UVP <TEL> uvp = new UVP <TEL>();

            uvp.Value       = null;
            uvp.Probability = null;
            Assert.IsFalse(uvp.Validate());
        }
Beispiel #2
0
        public void UVPValueProbabilityTest1()
        {
            UVP <TEL> uvp = new UVP <TEL>();

            uvp.Value       = "HOLA";
            uvp.Probability = (decimal)0.50;
            Assert.IsTrue(uvp.Validate());
        }
Beispiel #3
0
        public void UVPProbatilityTest()
        {
            UVP <TEL> uvp = new UVP <TEL>();

            uvp.Value       = null;
            uvp.Probability = (decimal)0.50;
            Assert.IsFalse(uvp.Validate());
        }
Beispiel #4
0
        public void UVPValueTest()
        {
            UVP <TEL> uvp = new UVP <TEL>();

            uvp.Value       = "HOLA";
            uvp.Probability = null;
            Assert.IsFalse(uvp.Validate());
        }
Beispiel #5
0
        public void UVPValueWrongProbabilityTest4()
        {
            string    p1  = "HOLA";
            double    p2  = -0.01;
            UVP <TEL> uvp = new UVP <TEL>(p1, (Decimal)p2);

            Assert.IsFalse(uvp.Validate());
        }
Beispiel #6
0
        public void UVPValueWrongProbabilityTest3()
        {
            UVP <TEL> uvp = new UVP <TEL>();

            uvp.Value       = "HOLA";
            uvp.Probability = (decimal) - 0.01;
            Assert.IsFalse(uvp.Validate());
        }
Beispiel #7
0
        public void UVPValueProbabilityTest2()
        {
            string    p1  = "HOLA";
            double    p2  = 0.50;
            UVP <TEL> uvp = new UVP <TEL>((TEL)p1, (decimal)p2);

            Assert.IsTrue(uvp.Validate());
        }
Beispiel #8
0
 public void UVPValueProbabilityTest1()
 {
     UVP<TEL> uvp = new UVP<TEL>();
     uvp.Value = "HOLA";
     uvp.Probability = (decimal)0.50;
     Assert.IsTrue(uvp.Validate());
 }
Beispiel #9
0
 public void UVPNullAttributesTest()
 {
     UVP<TEL> uvp = new UVP<TEL>();
     uvp.Value = null;
     uvp.Probability = null;
     Assert.IsFalse(uvp.Validate());
 }
Beispiel #10
0
 public void UVPProbatilityTest()
 {
     UVP<TEL> uvp = new UVP<TEL>();
     uvp.Value = null;
     uvp.Probability = (decimal)0.50;
     Assert.IsFalse(uvp.Validate());
 }
Beispiel #11
0
 public void UVPValueTest()
 {
     UVP<TEL> uvp = new UVP<TEL>();
     uvp.Value = "HOLA";
     uvp.Probability = null;
     Assert.IsFalse(uvp.Validate());
 }
Beispiel #12
0
 public void UVPValueWrongProbabilityTest4()
 {
     string p1 = "HOLA";
     double p2 = -0.01;
     UVP<TEL> uvp = new UVP<TEL>(p1, (Decimal)p2);
     Assert.IsFalse(uvp.Validate());
 }
Beispiel #13
0
 public void UVPValueWrongProbabilityTest3()
 {
     UVP<TEL> uvp = new UVP<TEL>();
     uvp.Value = "HOLA";
     uvp.Probability = (decimal)-0.01;
     Assert.IsFalse(uvp.Validate());
 }
Beispiel #14
0
 public void UVPValueProbabilityTest2()
 {
     string p1 = "HOLA";
     double p2 = 0.50;
     UVP<TEL> uvp = new UVP<TEL>((TEL)p1,(decimal)p2);
     Assert.IsTrue(uvp.Validate());
 }