AssertionException
Thrown when an assertion failed.
using NUnit.
Framework.
Interfaces;
using System;
using System.
Runtime.
CompilerServices;
using System.
Runtime.
Serialization;
namespace NUnit.
Framework
{
[
Serializable]
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
[
System.
Runtime.
CompilerServices.
Nullable(
0)]
public class AssertionException :
ResultStateException
{
public override ResultState ResultState =>
ResultState.
Failure;
public AssertionException(
string message)
:
base(
message)
{
}
public AssertionException(
string message, [
System.
Runtime.
CompilerServices.
Nullable(
2)]
Exception inner)
:
base(
message,
inner)
{
}
protected AssertionException(
SerializationInfo info,
StreamingContext context)
:
base(
info,
context)
{
}
}
}