C# Class IronFramework.TestCommon.Assert

Inheritance: Xunit.Assert
Mostra file Open project: megadotnet/ironframework

Public Properties

Property Type Description
GenericType GenericTypeAssert
Http HttpAssert
MediaType MediaTypeAssert
Reflection ReflectionAssert
Serializer SerializerAssert
Stream StreamAssert
Task TaskAssert
Type TypeAssert
Xml XmlAssert

Public Methods

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

Verifies that two strings are equivalent.

Private Methods

Method 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 method

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.
return void

Property Details

GenericType public_oe static_oe property

public static GenericTypeAssert GenericType
return GenericTypeAssert

Http public_oe static_oe property

public static HttpAssert,IronFramework.TestCommon Http
return HttpAssert

MediaType public_oe static_oe property

public static MediaTypeAssert,IronFramework.TestCommon MediaType
return MediaTypeAssert

Reflection public_oe static_oe property

public static ReflectionAssert Reflection
return ReflectionAssert

Serializer public_oe static_oe property

public static SerializerAssert Serializer
return SerializerAssert

Stream public_oe static_oe property

public static StreamAssert Stream
return StreamAssert

Task public_oe static_oe property

public static TaskAssert Task
return TaskAssert

Type public_oe static_oe property

public static TypeAssert Type
return TypeAssert

Xml public_oe static_oe property

public static XmlAssert,IronFramework.TestCommon Xml
return XmlAssert