Tests.Generator.Generator C# (CSharp) Method

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
        public Generator(int trueAfterTimes, bool throwsException = false)
        {
            _trueAfterTimes = trueAfterTimes;
            _throwsException = throwsException;
        }