Negate() 공개 정적인 메소드

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.
리턴 object
예제 #1
0
 public void Negate()
 {
     Assert.AreEqual(-10, NumberUtils.Negate(10));
 }
예제 #2
0
 public void NegateString()
 {
     Assert.Throws <ArgumentException>(() => NumberUtils.Negate(string.Empty));
 }
예제 #3
0
 public void NegateNull()
 {
     Assert.Throws <ArgumentException>(() => NumberUtils.Negate(null));
 }
예제 #4
0
 public void NegateString()
 {
     NumberUtils.Negate(null);
 }
예제 #5
0
 public void NegateNull()
 {
     NumberUtils.Negate(null);
 }
예제 #6
0
 public void NegateString()
 {
     NumberUtils.Negate(string.Empty);
 }