|
Bny.UnitTests 1.1.0
C# library for unit testing
|
Represents assertion and stores additional information about it More...
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 | |
Represents assertion and stores additional information about it
| Assertion.Assertion | ( | bool | success, |
| string | call, | ||
| int | lineNumber, | ||
| string | file | ||
| ) |
Creates the assertion with its metadata
| success | The assertion value |
| call | What was asserted |
| lineNumber | Line number of the assertion, 0 if unknown |
| file | File in which the assertion is, empty if unknown |
| override string Assertion.ToString | ( | ) |
Returns unformatted assertion summary