Click or drag to resize

NumericTypeT, TType Class

Represents a Range of numeric values (with several chunks)
Inheritance Hierarchy
SystemObject
  SmartTests.RangesNumericTypeT, TType
    More...

Namespace:  SmartTests.Ranges
Assembly:  SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax
public abstract class NumericType<T, TType> : INumericType<T>, 
	IType
where T : Object, IComparable<T>
where TType : class, Object, INumericType<T>

Type Parameters

T
The type of integers for this range
TType
The explicit Range Type (should be itself in sub-classes)

The NumericTypeT, TType type exposes the following members.

Constructors
  NameDescription
Protected methodNumericTypeT, TType
Initializes a new instance of the NumericTypeT, TType class
Top
Properties
  NameDescription
Public propertyChunks
The sorted list of non-overlapping chunks
Protected propertyMaxValue
Maximum value for type T
Protected propertyMinValue
Minimum value for type T
Top
Methods
  NameDescription
Public methodAbove(T)
Adds a chunk of numeric values above min
Public methodAbove(T, T, T)
adds a chunk of numeric values above min and returns a criteria for this range
Public methodAboveOrEqual(T)
Adds a chunk of numeric values above a min
Public methodAboveOrEqual(T, T, T)
Adds a chunk of numeric values above or equal to a min and returns a criteria for this range
Public methodBelow(T)
Adds a chunk of numeric values below max
Public methodBelow(T, T, T)
Creates a range of numeric values below max and returns a criteria for this range
Public methodBelowOrEqual(T)
Adds a chunk of numeric values below or equal to max
Public methodBelowOrEqual(T, T, T)
Adds a range of numeric values below or equal to max and returns a criteria for this range
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Protected methodEquals(TType)
Compare two NumericType
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetErrorValue
Returns any value for this range (all values have the same probability) as an error value
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Protected methodGetNext
Returns the value following n
Protected methodGetPrevious
Returns the value preceding n
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValidValue
Returns any value for this range (all values have the same probability)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRange(T, T)
Adds a chunk of numeric values
Public methodRange(T, Boolean, T, Boolean)
Adds a chunk of numeric values
Public methodRange(T, T, T, T)
Adds a chunk of numeric values and returns a criteria for this range
Public methodRange(T, Boolean, T, Boolean, T, T)
Adds a chunk of numeric values
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodToString(String)
Computes the string representing this range, when its type as a string is provided
Protected methodToString(T)
Returns the numeric value as a string.
Public methodValue(T)
Creates a range of one numeric value
Public methodValue(T, T)
Creates a range of one numeric value and returns a criteria for this range
Top
See Also
Inheritance Hierarchy
SystemObject
  SmartTests.RangesNumericTypeT, TType
    SmartTests.RangesByteType
    SmartTests.RangesDateTimeType
    SmartTests.RangesDecimalType
    SmartTests.RangesDoubleType
    SmartTests.RangesInt16Type
    SmartTests.RangesInt32Type
    SmartTests.RangesInt64Type
    SmartTests.RangesSByteType
    SmartTests.RangesSingleType
    SmartTests.RangesUInt16Type
    SmartTests.RangesUInt32Type
    SmartTests.RangesUInt64Type