PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.Generic.DecimalExtensions Class Reference

Provides extensions for decimal values which make testing easier. More...

Static Public Member Functions

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.

Detailed Description

Provides extensions for decimal values which make testing easier.

Member Function Documentation

◆ 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
someValueValue to compare against
otherValueValue 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
someValueValue to compare against
otherValueValue to compare with
toPlacesMaximum decimal places to consider

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.Generic/DecimalExtensions.cs