Bny.UnitTests 1.1.0
C# library for unit testing
Loading...
Searching...
No Matches
Assertion Struct Reference

Represents assertion and stores additional information about it More...

Inheritance diagram for Assertion:

Public Member Functions

 Assertion (bool success, string call, int lineNumber, string file)
 Creates the assertion with its metadata More...
 
override string ToString ()
 Returns unformatted assertion summary More...
 
string ToString (string? format, IFormatProvider? formatProvider)
 

Properties

bool Success [get]
 Assertion value
 
string Call [get]
 What was asserted
 
int LineNumber [get]
 Line number of the assertion, 0 if unknown
 
string File [get]
 File in which the assertion is, empty if unknown
 
string Caller = "" [get]
 Function where it is asserted
 

Detailed Description

Represents assertion and stores additional information about it

Constructor & Destructor Documentation

◆ Assertion()

Assertion.Assertion ( bool  success,
string  call,
int  lineNumber,
string  file 
)

Creates the assertion with its metadata

Parameters
successThe assertion value
callWhat was asserted
lineNumberLine number of the assertion, 0 if unknown
fileFile in which the assertion is, empty if unknown

Member Function Documentation

◆ ToString()

override string Assertion.ToString ( )

Returns unformatted assertion summary

Returns
Unformatted assertion summary

The documentation for this struct was generated from the following file: