Test constructor
Constructs a new Test named name
.
Only one Test should be created per simulation. It will set the value of random to a new Random object with randomSeed as the seed. If no randomSeed is specified, a random seed will be selected. To rerun a test with the same randomized behavior, pass the same randomSeed as the previous run.
Implementation
Test(
String name, {
this.randomSeed,
this.printLevel = Level.ALL,
this.failLevel = Level.SEVERE,
this.killLevel = Level.SHOUT,
}) : _random = Random(randomSeed),
super(name, null) {
if (_instance != null) {
throw Exception('Instance of `Test` is already running!');
}
_instance = this;
configureLogger();
}