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

Provides static utilities to test constructors. More...

Static Public Member Functions

static void ShouldExpectNonNullParameterFor< TCheckingConstructorOf > (string parameterName, Type expectedParameterType)
 Tests that a single-constructor class expects a parameter by name and type and will throw an ArgumentException if that parameter is null.

Detailed Description

Provides static utilities to test constructors.

Member Function Documentation

◆ ShouldExpectNonNullParameterFor< TCheckingConstructorOf >()

void PeanutButter.TestUtils.Generic.ConstructorTestUtils.ShouldExpectNonNullParameterFor< TCheckingConstructorOf > ( string parameterName,
Type expectedParameterType )
static

Tests that a single-constructor class expects a parameter by name and type and will throw an ArgumentException if that parameter is null.

Parameters
parameterName
expectedParameterType
Template Parameters
TCheckingConstructorOf

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