C# Класс Tests.Generator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Generator ( int trueAfterTimes, bool throwsException = false ) : System

Initializes a new instance of the Generator class.

Next ( ) : bool

Описание методов

Generator() публичный Метод

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.
Результат System

Next() публичный Метод

public Next ( ) : bool
Результат bool