void AssertError(GalaxyCheck.IGen <object> gen) { Action action = () => gen.SampleOne(seed: seed, size: size); action.Should() .Throw <GalaxyCheck.Exceptions.GenErrorException>() .WithMessage("Error while running generator ChooseGen: 'choices' must be non-empty"); }
IReadOnlyList <object> Sample(GalaxyCheck.IGen <IReadOnlyList <object> > gen, int seed) => gen.SampleOne(seed: seed, size: size);