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