Provides extensions for decimal values which make testing easier.
More...
|
static void | ShouldMatch (this decimal someValue, decimal otherValue) |
| Tests that two decimal values match up to the second decimal place.
|
static void | ShouldMatch (this decimal someValue, decimal otherValue, int toPlaces) |
| Tests if two decimal values match up to the required decimal places.
|
Provides extensions for decimal values which make testing easier.
◆ ShouldMatch() [1/2]
void PeanutButter.TestUtils.Generic.DecimalExtensions.ShouldMatch |
( |
this decimal | someValue, |
|
|
decimal | otherValue ) |
|
static |
Tests that two decimal values match up to the second decimal place.
- Parameters
-
someValue | Value to compare against |
otherValue | Value to compare with |
◆ ShouldMatch() [2/2]
void PeanutButter.TestUtils.Generic.DecimalExtensions.ShouldMatch |
( |
this decimal | someValue, |
|
|
decimal | otherValue, |
|
|
int | toPlaces ) |
|
static |
Tests if two decimal values match up to the required decimal places.
- Parameters
-
someValue | Value to compare against |
otherValue | Value to compare with |
toPlaces | Maximum decimal places to consider |
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.Generic/DecimalExtensions.cs