public void TestConstructWithNull()
        {
            Assert.Throws <ArgumentNullException>(
                () => _ = new SeedSequence((uint[])null));

            Assert.Throws <ArgumentNullException>(
                () => _ = new SeedSequence((IEnumerable <uint>)null));
        }
Beispiel #2
0
        protected override MersenneTwister32Bit19937 GetEngine()
        {
            var ss = new SeedSequence(1, 2, 3);

            return(new MersenneTwister32Bit19937(ss));
        }
 public void TestConstructWithEmpty()
 {
     Assert.Throws <ArgumentException>(
         () => _ = new SeedSequence(Enumerable.Empty <uint>()));
 }