C# Class Tests.Generator

Afficher le fichier Open project: gildorwang/RetryHelper Class Usage Examples

Méthodes publiques

Méthode Description
Generator ( int trueAfterTimes, bool throwsException = false ) : System

Initializes a new instance of the Generator class.

Next ( ) : bool

Method Details

Generator() public méthode

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.
Résultat System

Next() public méthode

public Next ( ) : bool
Résultat bool