public void COToDoubleTest() { CO foo = new CO() { Value = (Decimal)1.2 }; Assert.AreEqual(1.2, foo.ToDouble()); }
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 }
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 }
public void COToDoubleTest() { CO foo = new CO() { Value = (Decimal)1.2 }; Assert.AreEqual(1.2, foo.ToDouble()); }