public void ToDecimalTest() { IConvertible target = new Volume(10F); IFormatProvider provider = null; Decimal expected = new Decimal(10F); Decimal actual; actual = target.ToDecimal(provider); Assert.AreEqual(expected, actual); }