public void ToInt32Test() { IConvertible target = new Volume(10F); IFormatProvider provider = null; int expected = 10; int actual; actual = target.ToInt32(provider); Assert.AreEqual(expected, actual); }