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