Negate() public static méthode

Negates the supplied number.
/// If the supplied is not a supported numeric type. ///
public static Negate ( object number ) : object
number object The number to negate.
Résultat object
 public void Negate()
 {
     Assert.AreEqual(-10, NumberUtils.Negate(10));
 }
 public void NegateString()
 {
     Assert.Throws <ArgumentException>(() => NumberUtils.Negate(string.Empty));
 }
 public void NegateNull()
 {
     Assert.Throws <ArgumentException>(() => NumberUtils.Negate(null));
 }
 public void NegateString()
 {
     NumberUtils.Negate(null);
 }
 public void NegateNull()
 {
     NumberUtils.Negate(null);
 }
 public void NegateString()
 {
     NumberUtils.Negate(string.Empty);
 }