C# Class IronFramework.TestCommon.Assert

Inheritance: Xunit.Assert
Afficher le fichier Open project: megadotnet/ironframework

Méthodes publiques

Свойство Type Description
GenericType GenericTypeAssert
Http HttpAssert
MediaType MediaTypeAssert
Reflection ReflectionAssert
Serializer SerializerAssert
Stream StreamAssert
Task TaskAssert
Type TypeAssert
Xml XmlAssert

Méthodes publiques

Méthode Description
Equal ( string expected, string actual, bool ignoreCase = false, bool ignoreLineEndingDifferences = false, bool ignoreWhiteSpaceDifferences = false ) : void

Verifies that two strings are equivalent.

Private Methods

Méthode Description
IsLineEnding ( char c ) : bool
IsWhiteSpace ( char c ) : bool
SkipLineEnding ( string value, int index ) : int
SkipWhitespace ( string value, int index ) : int

Method Details

Equal() public static méthode

Verifies that two strings are equivalent.
Thrown when the strings are not equivalent.
public static Equal ( string expected, string actual, bool ignoreCase = false, bool ignoreLineEndingDifferences = false, bool ignoreWhiteSpaceDifferences = false ) : void
expected string The expected string value.
actual string The actual string value.
ignoreCase bool If set to true, ignores cases differences. The invariant culture is used.
ignoreLineEndingDifferences bool If set to true, treats \r\n, \r, and \n as equivalent.
ignoreWhiteSpaceDifferences bool If set to true, treats spaces and tabs (in any non-zero quantity) as equivalent.
Résultat void

Property Details

GenericType public_oe static_oe property

public static GenericTypeAssert GenericType
Résultat GenericTypeAssert

Http public_oe static_oe property

public static HttpAssert,IronFramework.TestCommon Http
Résultat HttpAssert

MediaType public_oe static_oe property

public static MediaTypeAssert,IronFramework.TestCommon MediaType
Résultat MediaTypeAssert

Reflection public_oe static_oe property

public static ReflectionAssert Reflection
Résultat ReflectionAssert

Serializer public_oe static_oe property

public static SerializerAssert Serializer
Résultat SerializerAssert

Stream public_oe static_oe property

public static StreamAssert Stream
Résultat StreamAssert

Task public_oe static_oe property

public static TaskAssert Task
Résultat TaskAssert

Type public_oe static_oe property

public static TypeAssert Type
Résultat TypeAssert

Xml public_oe static_oe property

public static XmlAssert,IronFramework.TestCommon Xml
Résultat XmlAssert