Fluent Assertions Documentation
FluentAssertions Namespace / AssertionExtensions Class / Should Method
In This Topic
    Should Method (AssertionExtensions)
    In This Topic
    Overload List
    OverloadDescription
    Returns an FluentAssertions.Specialized.ExecutionTimeAssertions object that can be used to assert the current FluentAssertions.Specialized.ExecutionTime.  
    Returns an FluentAssertions.Types.AssemblyAssertions object that can be used to assert the current System.Reflection.Assembly.  
    Returns an FluentAssertions.Xml.XDocumentAssertions object that can be used to assert the current System.Xml.Linq.XElement.  
    Returns an FluentAssertions.Xml.XElementAssertions object that can be used to assert the current System.Xml.Linq.XElement.  
    Returns an FluentAssertions.Xml.XAttributeAssertions object that can be used to assert the current System.Xml.Linq.XAttribute.  
    Returns an FluentAssertions.Streams.StreamAssertions object that can be used to assert the current System.IO.Stream.  
    Returns an FluentAssertions.Streams.BufferedStreamAssertions object that can be used to assert the current System.IO.BufferedStream.  
    Returns an FluentAssertions.Primitives.ObjectAssertions object that can be used to assert the current System.Object.  
    Returns an FluentAssertions.Primitives.BooleanAssertions object that can be used to assert the current System.Boolean.  
    Returns an FluentAssertions.Primitives.NullableBooleanAssertions object that can be used to assert the current nullable System.Boolean.  
    Returns an FluentAssertions.Primitives.GuidAssertions object that can be used to assert the current System.Guid.  
    Returns an FluentAssertions.Primitives.NullableGuidAssertions object that can be used to assert the current nullable System.Guid.  
    Returns an FluentAssertions.Collections.GenericCollectionAssertions<T> object that can be used to assert the current IEnumerable.  
    Returns an FluentAssertions.Collections.StringCollectionAssertions object that can be used to assert the current IEnumerable.  
    Returns an FluentAssertions.Collections.GenericDictionaryAssertions<TCollection,TKey,TValue> object that can be used to assert the current IDictionary.  
    Returns an FluentAssertions.Collections.GenericDictionaryAssertions<TCollection,TKey,TValue> object that can be used to assert the current IEnumerable of KeyValuePair.  
    Returns an FluentAssertions.Collections.GenericDictionaryAssertions<TCollection,TKey,TValue> object that can be used to assert the current TCollection.  
    Returns an FluentAssertions.Primitives.DateTimeAssertions object that can be used to assert the current System.DateTime.  
    Returns an FluentAssertions.Primitives.DateTimeOffsetAssertions object that can be used to assert the current System.DateTimeOffset.  
    Returns an FluentAssertions.Primitives.NullableDateTimeAssertions object that can be used to assert the current nullable System.DateTime.  
    Returns an FluentAssertions.Primitives.NullableDateTimeOffsetAssertions object that can be used to assert the current nullable System.DateTimeOffset.  
    Returns an FluentAssertions.Primitives.DateOnlyAssertions object that can be used to assert the current System.DateOnly.  
    Returns an FluentAssertions.Primitives.NullableDateOnlyAssertions object that can be used to assert the current nullable System.DateOnly.  
    Returns an FluentAssertions.Primitives.TimeOnlyAssertions object that can be used to assert the current System.TimeOnly.  
    Returns an FluentAssertions.Primitives.NullableTimeOnlyAssertions object that can be used to assert the current nullable System.TimeOnly.  
    Returns an FluentAssertions.Numeric.ComparableTypeAssertions<T> object that can be used to assert the current IComparable.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Int32.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Int32.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.UInt32.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.UInt32.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Decimal.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Decimal.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Byte.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Byte.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.SByte.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.SByte.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Int16.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Int16.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.UInt16.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.UInt16.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Int64.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Int64.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.UInt64.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.UInt64.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Single.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Single.  
    Returns an FluentAssertions.Numeric.NumericAssertions<T> object that can be used to assert the current System.Double.  
    Returns an FluentAssertions.Numeric.NullableNumericAssertions<T> object that can be used to assert the current nullable System.Double.  
    Returns an FluentAssertions.Primitives.StringAssertions object that can be used to assert the current System.String.  
    Returns an FluentAssertions.Primitives.SimpleTimeSpanAssertions object that can be used to assert the current System.TimeSpan.  
    Returns an FluentAssertions.Primitives.NullableSimpleTimeSpanAssertions object that can be used to assert the current nullable System.TimeSpan.  
    Returns a FluentAssertions.Types.TypeAssertions object that can be used to assert the current System.Type.  
    Returns a FluentAssertions.Types.TypeAssertions object that can be used to assert the current System.Type.  
    Returns a FluentAssertions.Types.MethodBaseAssertions<TSubject,TAssertions> object that can be used to assert the current System.Reflection.MethodInfo.  
    Returns a FluentAssertions.Types.MethodInfoAssertions object that can be used to assert the current System.Reflection.MethodInfo.  
    Returns a FluentAssertions.Types.MethodInfoSelectorAssertions object that can be used to assert the methods returned by the current FluentAssertions.Types.MethodInfoSelector.  
    Returns a FluentAssertions.Types.PropertyInfoAssertions object that can be used to assert the current FluentAssertions.Types.PropertyInfoSelector.  
    Returns a FluentAssertions.Types.PropertyInfoSelectorAssertions object that can be used to assert the properties returned by the current FluentAssertions.Types.PropertyInfoSelector.  
    Returns a FluentAssertions.Specialized.ActionAssertions object that can be used to assert the current System.Action.  
    Returns a FluentAssertions.Specialized.NonGenericAsyncFunctionAssertions object that can be used to assert the current Func.  
    Returns a FluentAssertions.Specialized.GenericAsyncFunctionAssertions<TResult> object that can be used to assert the current System.Func{Task{T}}.  
    Returns a FluentAssertions.Specialized.FunctionAssertions<T> object that can be used to assert the current Func.  
    Returns a FluentAssertions.Specialized.TaskCompletionSourceAssertions<T> object that can be used to assert the current TaskCompletionSource.  
    Returns a FluentAssertions.Specialized.TaskCompletionSourceAssertions object that can be used to assert the current System.Threading.Tasks.TaskCompletionSource.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.  
    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