public void ToDoubleTest() { IConvertible target = new Volume(10F); IFormatProvider provider = null; double expected = 10F; double actual; actual = target.ToDouble(provider); Assert.AreEqual(expected, actual); }