Exemple #1
0
        public void Base_Int()
        {
            var random = new RandomSampleOverride();

            // from 2.0+ Next(), Next(int,int) and NextBytes(byte[]) do not call Sample
            // see MSDN's Notes to Inheritors
            random.Next();
            random.Next(Int32.MinValue, Int32.MaxValue);
            random.NextBytes(new byte[1]);
        }
Exemple #2
0
		public void Base_Double ()
		{
			var random = new RandomSampleOverride ();
			random.NextDouble ();
		}
Exemple #3
0
		public void Base_Int ()
		{
			var random = new RandomSampleOverride ();
			// from 2.0+ Next(), Next(int,int) and NextBytes(byte[]) do not call Sample
			// see MSDN's Notes to Inheritors
			random.Next ();
			random.Next (Int32.MinValue, Int32.MaxValue);
			random.NextBytes (new byte[1]);
		}
Exemple #4
0
        public void Base_Double()
        {
            var random = new RandomSampleOverride();

            random.NextDouble();
        }