Ejemplo n.º 1
0
        public void COToDoubleTest()
        {
            CO foo = new CO()
            {
                Value = (Decimal)1.2
            };

            Assert.AreEqual(1.2, foo.ToDouble());
        }
Ejemplo n.º 2
0
        public void COUsingToDoubleOnCOTest()
        {
            // create instance assigning value and using the ToDouble() function.
            // NOTE: the coInstance value does not actually change in memory
            CO coInstance = new CO();

            coInstance.Value = (Decimal)4.5f;

            // true if the ToDouble method works correctly
            Assert.IsTrue(coInstance.ToDouble() == 4.5f);     // passes
        }
Ejemplo n.º 3
0
        public void COUsingToDoubleOnCOTest()
        {
                // create instance assigning value and using the ToDouble() function.
                // NOTE: the coInstance value does not actually change in memory
                CO coInstance = new CO();
                coInstance.Value = (Decimal)4.5f;

                // true if the ToDouble method works correctly
                Assert.IsTrue(coInstance.ToDouble() == 4.5f); // passes
        }
Ejemplo n.º 4
0
 public void COToDoubleTest()
 {
     CO foo = new CO() { Value = (Decimal)1.2 };
     Assert.AreEqual(1.2, foo.ToDouble());
 }