C# Class Tests.Generator

ファイルを表示 Open project: gildorwang/RetryHelper Class Usage Examples

Public Methods

Method Description
Generator ( int trueAfterTimes, bool throwsException = false ) : System

Initializes a new instance of the Generator class.

Next ( ) : bool

Method Details

Generator() public method

Initializes a new instance of the Generator class.
public Generator ( int trueAfterTimes, bool throwsException = false ) : System
trueAfterTimes int The result will become true after the specified times.
throwsException bool If set to true, an exception will be thrown for each failure.
return System

Next() public method

public Next ( ) : bool
return bool