Tests.Generator.Generator C# (CSharp) 메소드

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