---
title: "Codeunit 130000 Assert"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/130000-assert/
type: codeunit
id: 130000
name: "Assert"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/130000-assert/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 130000 Assert

JOP-AL, https://jonas-paprotka.de/ref/codeunit/130000-assert/

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/130000-assert/editions.json) |
| Source file | Assert.Codeunit.al |

## Procedures

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

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
