C# 클래스 PclUnit.Constraints.Pieces.Numerics

The Numerics class contains common operations on numeric values.
파일 보기 프로젝트 열기: jbtule/PclUnit 1 사용 예제들

공개 메소드들

메소드 설명
AreEqual ( object expected, object actual, Tolerance &tolerance ) : bool

Test two numeric values for equality, performing the usual numeric conversions and using a provided or default tolerance. If the tolerance provided is Empty, this method may set it to a default tolerance.

Compare ( object expected, object actual ) : int

Compare two numeric values, performing the usual numeric conversions.

IsFixedPointNumeric ( Object obj ) : bool

Checks the type of the object, returning true if the object is a fixed point numeric type.

IsFloatingPointNumeric ( Object obj ) : bool

Checks the type of the object, returning true if the object is a floating point numeric type.

IsNumericType ( Object obj ) : bool

Checks the type of the object, returning true if the object is a numeric type.

비공개 메소드들

메소드 설명
AreEqual ( decimal expected, decimal actual, Tolerance tolerance ) : bool
AreEqual ( double expected, double actual, Tolerance &tolerance ) : bool
AreEqual ( float expected, float actual, Tolerance &tolerance ) : bool
AreEqual ( int expected, int actual, Tolerance tolerance ) : bool
AreEqual ( long expected, long actual, Tolerance tolerance ) : bool
AreEqual ( uint expected, uint actual, Tolerance tolerance ) : bool
AreEqual ( ulong expected, ulong actual, Tolerance tolerance ) : bool
Numerics ( ) : System

메소드 상세

AreEqual() 공개 정적인 메소드

Test two numeric values for equality, performing the usual numeric conversions and using a provided or default tolerance. If the tolerance provided is Empty, this method may set it to a default tolerance.
public static AreEqual ( object expected, object actual, Tolerance &tolerance ) : bool
expected object The expected value
actual object The actual value
tolerance Tolerance A reference to the tolerance in effect
리턴 bool

Compare() 공개 정적인 메소드

Compare two numeric values, performing the usual numeric conversions.
public static Compare ( object expected, object actual ) : int
expected object The expected value
actual object The actual value
리턴 int

IsFixedPointNumeric() 공개 정적인 메소드

Checks the type of the object, returning true if the object is a fixed point numeric type.
public static IsFixedPointNumeric ( Object obj ) : bool
obj Object The object to check
리턴 bool

IsFloatingPointNumeric() 공개 정적인 메소드

Checks the type of the object, returning true if the object is a floating point numeric type.
public static IsFloatingPointNumeric ( Object obj ) : bool
obj Object The object to check
리턴 bool

IsNumericType() 공개 정적인 메소드

Checks the type of the object, returning true if the object is a numeric type.
public static IsNumericType ( Object obj ) : bool
obj Object The object to check
리턴 bool