AssertException
Overview
Represents a special exception that is thrown by the Assert class to signal assertation failure and handled by the Runner core.
Instead of using this exception directly you can use methods of the Assert class to detect and singal about failed tests.
For example, all following methods will throw AssertException:
Assert.IsTrue(False);
Assert.IsEmpty("abc");
Assert.Fail("Test failed");
Location
-
Reference:
- RemObjects.Elements.EUnit.dll .NET, .NET Standard 2.0
- remobjects.elements.eunit.jar Cooper
- EUnit.fx Island, macOS
- libEUnit.fx Toffee
- Namespace: RemObjects.Elements.EUnit
- Platforms: .NET, .NET Standard 2.0, Cooper, Island, macOS, Toffee
-
Ancestry:
- Exception | BaseException | AssertException .NET, .NET Standard 2.0, Cooper, macOS
- Exception | BaseException | AssertException Island
- NSException | BaseException | AssertException Toffee
- Exception | BaseException | AssertException .NET, .NET Standard 2.0, Cooper, macOS
Properties
Message virtual (declared in BaseException) Toffee
var Message: String { get{} }
ParsableMessage virtual (declared in BaseException)
property ParsableMessage: String read;
String ParsableMessage { get; }
var ParsableMessage: String { get{} }
String ParsableMessage { __get; }
ReadOnly Property ParsableMessage() As String
Instance Methods
constructor .NET, .NET Standard 2.0, Cooper, Island, macOS
constructor(aMessage: String; aFile: String; aLine: Int32; aClass: String; aMethod: String; aType: String)
AssertException(String aMessage, String aFile, Int32 aLine, String aClass, String aMethod, String aType)
init(_ aMessage: String, _ aFile: String, _ aLine: Int32, _ aClass: String, _ aMethod: String, _ aType: String)
Parameters:
- aMessage:
- aFile:
- aLine:
- aClass:
- aMethod:
- aType: