Beispiel #1
0
        public void COToIntTest()
        {
            CO foo = new CO()
            {
                Value = (Decimal)1.2
            };

            Assert.AreEqual(1, foo.ToInt());
        }
Beispiel #2
0
        public void COUsingToIntOnCOTest()
        {
            // create instance assigning value and using the ToInt() function.
            // NOTE: the value of the coInstance object does not change.
            CO coInstance = new CO();

            coInstance.Value = (Decimal)4.5f;

            // is true if the ToInt() method works correctly.
            Assert.IsTrue(coInstance.ToInt() == 4);
        }
Beispiel #3
0
        public void COUsingToIntOnCOTest()
        {
                // create instance assigning value and using the ToInt() function.
                // NOTE: the value of the coInstance object does not change.
                CO coInstance = new CO();
                coInstance.Value = (Decimal)4.5f;

                // is true if the ToInt() method works correctly.
                Assert.IsTrue(coInstance.ToInt() == 4);
        }
Beispiel #4
0
 public void COToIntTest()
 {
     CO foo = new CO() { Value = (Decimal)1.2 };
     Assert.AreEqual(1, foo.ToInt());
 }