Fluent Assertions Documentation
FluentAssertions.Numeric Namespace / NumericAssertionsBase<T,TSubject,TAssertions> Class
Members
In This Topic
    NumericAssertionsBase<T,TSubject,TAssertions> Class
    In This Topic
    Object Model
    NumericAssertionsBase<T,TSubject,TAssertions> ClassAssertionChain Class
    Syntax
    public abstract class NumericAssertionsBase<T,TSubject,TAssertions> 
    where T: new(), IComparable<T>, struct
    where TAssertions: NumericAssertionsBase<T,TSubject,TAssertions>
    Type Parameters
    T
    TSubject
    TAssertions
    Inheritance Hierarchy

    System.Object
       FluentAssertions.Numeric.NumericAssertionsBase<T,TSubject,TAssertions>
          FluentAssertions.Numeric.NullableNumericAssertions<T,TAssertions>
          FluentAssertions.Numeric.NumericAssertions<T,TAssertions>

    Public Properties
     NameDescription
    Public PropertyProvides access to the FluentAssertions.Execution.AssertionChain that this assertion class was initialized with.  
    Public Property  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Asserts that the integral number value is exactly the same as the expected value.  
    Public MethodAsserts that the numeric value is greater than the specified expected value.  
    Public MethodAsserts that the numeric value is greater than or equal to the specified expected value.  
    Public Method Asserts that a value is within a range.  
    Public MethodAsserts that the numeric value is less than the specified expected value.  
    Public MethodAsserts that the numeric value is less than or equal to the specified expected value.  
    Public Method Asserts that the numeric value is less than zero.  
    Public MethodAsserts that the object is of the specified type expectedType.  
    Public MethodOverloaded. Asserts that a value is one of the specified validValues.  
    Public Method Asserts that the numeric value is greater than zero.  
    Public Method  
    Public MethodAsserts that the predicate is satisfied.  
    Public MethodOverloaded. Asserts that the integral number value is not the same as the unexpected value.  
    Public Method Asserts that a value is not within a range.  
    Public MethodAsserts that the object is not of the specified type unexpectedType.  
    Top
    Extension Methods
     NameDescription
    Public Extension MethodSafely casts the specified object to the type specified through TTo.
    Public Extension MethodOverloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions
    Public Extension MethodOverloaded. Forces enumerating a collection. Should be used to assert that a method that uses the yield keyword throws a particular exception.
    Public Extension Method Provides methods for asserting the execution time of a method or property.
    Public Extension MethodOverloaded. Invokes the specified action on a subject so that you can chain it with any of the assertions from FluentAssertions.Specialized.ActionAssertions
    Public Extension MethodOverloaded. Starts monitoring eventSource for its events.
    Public Extension MethodOverloaded. Returns an FluentAssertions.Specialized.ExecutionTimeAssertions object that can be used to assert the current FluentAssertions.Specialized.ExecutionTime.
    Public Extension MethodOverloaded. Returns an FluentAssertions.Primitives.EnumAssertions<TEnum,TAssertions> object that can be used to assert the current TEnum.
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also