Codeunit 130000 Assert

Application Test Library

37 procedures

ProcedureVersions
IsTrue(Condition: Boolean; Msg: Text)new in 28
IsFalse(Condition: Boolean; Msg: Text)new in 28
AreEqual(Expected: Variant; Actual: Variant; Msg: Text)new in 28
AreNotEqual(Expected: Variant; Actual: Variant; Msg: Text)new in 28
AreNearlyEqual(Expected: Decimal; Actual: Decimal; Delta: Decimal; Msg: Text)new in 28
AreNotNearlyEqual(Expected: Decimal; Actual: Decimal; Delta: Decimal; Msg: Text)new in 28
Fail(Msg: Text)new in 28
RecordIsEmpty(RecVariant: Variant)new in 28
RecordIsEmpty(RecVariant: Variant; CompanyName: Text)new in 28
RecordIsNotEmpty(RecVariant: Variant; CompanyName: Text)new in 28
RecordIsNotEmpty(RecVariant: Variant)new in 28
TableIsEmpty(TableNo: Integer)new in 28
TableIsNotEmpty(TableNo: Integer)new in 28
RecordCount(RecVariant: Variant; ExpectedCount: Integer)new in 28
ExpectedError(Expected: Text)new in 28
ExpectedErrorCannotFind(TableID: Integer)new in 28
ExpectedErrorCannotFind(TableID: Integer; RecordIndentificationText: Text)new in 28
ExpectedMessageCannotFind(LastErrorText: Text; TableID: Integer; RecordIndentificationText: Text)new in 28
ExpectedTestFieldError(FieldCaptionTested: Text; ExpectedValue: Text)new in 28
ExpectedTestFieldError(FieldCaptionTested: Text; ExpectedValue: Text; ActualValue: Text; TableCaptionTested: Text)new in 28
ExpectedTestFieldMessage(LastErrorText: Text; FieldCaptionTested: Text; ExpectedValue: Text; ActualValue: Text; TableCaptionTested: Text)new in 28
ExpectedErrorCode(Expected: Text)new in 28
ExpectedMessage(Expected: Text; Actual: Text)new in 28
ExpectedConfirm(Expected: Text; Actual: Text)new in 28
ExpectedStrMenu(ExpectedInstruction: Text; ExpectedOptions: Text; ActualInstruction: Text; ActualOptions: Text)new in 28
IsDataTypeSupported(Value: Variant): Booleannew in 28
TextEndsWith(OriginalText: Text; Substring: Text)new in 28
IsSubstring(OriginalText: Text; Substring: Text)new in 28
Compare(Left: Variant; Right: Variant): Booleannew in 28
Equal(Left: Variant; Right: Variant): Booleannew in 28
VerifyFailure(expectedErrorCode: Text; failureText: Text)new in 28
AssertRecordNotFound()new in 28
AssertRecordAlreadyExists()new in 28
AssertNothingInsideFilter()new in 28
AssertNoFilter()new in 28
AssertPrimRecordNotFound()new in 28
RecordsAreEqualExceptCertainFields(var RecordRefLeft: RecordRef; var RecordRefRight: RecordRef; var TempFieldToIgnore: Record Field temporary; Msg: Text): Booleannew in 28