Show / Hide Table of Contents

Class AssertionException

Exception thrown when an assertion fails.

Inheritance
object
Exception
AssertionException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Benday.Common.Testing
Assembly: Benday.Common.Testing.dll
Syntax
[Serializable]
public class AssertionException : Exception, ISerializable

Constructors

| Edit this page View Source

AssertionException()

Initializes a new instance of the AssertionException class.

Declaration
public AssertionException()
| Edit this page View Source

AssertionException(string)

Initializes a new instance of the AssertionException class with a specified error message.

Declaration
public AssertionException(string message)
Parameters
Type Name Description
string message

The message that describes the error.

| Edit this page View Source

AssertionException(string, Exception)

Initializes a new instance of the AssertionException class with a specified error message and a reference to the inner exception.

Declaration
public AssertionException(string message, Exception innerException)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception.

Implements

ISerializable

Extension Methods

ObjectAssertExtensions.ShouldBeNull<T>(T?, string)
ObjectAssertExtensions.ShouldBeSameAs<T>(T, T, string)
ObjectAssertExtensions.ShouldEqual<T>(T, T, string)
ObjectAssertExtensions.ShouldNotBeNull<T>(T?, string)
ObjectAssertExtensions.ShouldNotBeSameAs<T>(T, T, string)
ObjectAssertExtensions.ShouldNotEqual<T>(T, T, string)
ObjectAssertExtensions.ShouldBeOfType<T>(object?, string)
ObjectAssertExtensions.ShouldNotBeOfType<T>(object?, string)
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com