AssertionException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AssertionException(String) | |
AssertionException(SerializationInfo, StreamingContext) |
Serialization Constructor |
AssertionException(String, Exception) |
AssertionException(String)
public AssertionException (string message);
new NUnit.Framework.AssertionException : string -> NUnit.Framework.AssertionException
Parameters
- message
- String
The error message that explains the reason for the exception
Applies to
AssertionException(SerializationInfo, StreamingContext)
Serialization Constructor
protected AssertionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new NUnit.Framework.AssertionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> NUnit.Framework.AssertionException
Parameters
- info
- SerializationInfo
- context
- StreamingContext
Applies to
AssertionException(String, Exception)
public AssertionException (string message, Exception inner);
new NUnit.Framework.AssertionException : string * Exception -> NUnit.Framework.AssertionException
Parameters
- message
- String
The error message that explains the reason for the exception
- inner
- Exception
The exception that caused the current exception