C# Class Bytes2you.Validation.UnitTests.Testing.Helpers.Ensure

Show file Open project: veskokolev/Bytes2you.Validation

Public Methods

Method Description
ActionRunsInExpectedTime ( System.Action action, int repeatCount, int expectedTimeInMilliseconds ) : void
ArgumentExceptionIsThrown ( System.Action action, string expectedArgumentName, string expectedMessage = null ) : void
ArgumentNullExceptionIsThrown ( System.Action action, string expectedArgumentName ) : void
ArgumentOutOfRangeExceptionIsThrown ( System.Action action, string expectedArgumentName ) : void
NoExceptionIsThrown ( System.Action action ) : void

Method Details

ActionRunsInExpectedTime() public static method

public static ActionRunsInExpectedTime ( System.Action action, int repeatCount, int expectedTimeInMilliseconds ) : void
action System.Action
repeatCount int
expectedTimeInMilliseconds int
return void

ArgumentExceptionIsThrown() public static method

public static ArgumentExceptionIsThrown ( System.Action action, string expectedArgumentName, string expectedMessage = null ) : void
action System.Action
expectedArgumentName string
expectedMessage string
return void

ArgumentNullExceptionIsThrown() public static method

public static ArgumentNullExceptionIsThrown ( System.Action action, string expectedArgumentName ) : void
action System.Action
expectedArgumentName string
return void

ArgumentOutOfRangeExceptionIsThrown() public static method

public static ArgumentOutOfRangeExceptionIsThrown ( System.Action action, string expectedArgumentName ) : void
action System.Action
expectedArgumentName string
return void

NoExceptionIsThrown() public static method

public static NoExceptionIsThrown ( System.Action action ) : void
action System.Action
return void