コード例 #1
0
        public void Next()
        {
            var Generator = new Utilities.Random.DefaultClasses.TimeSpanGenerator();

            Assert.InRange(Generator.Next(new System.Random()), TimeSpan.MinValue, TimeSpan.MaxValue);
            Assert.InRange(Generator.Next(new System.Random(), new TimeSpan(10, 1, 1), new TimeSpan(12, 2, 3)), new TimeSpan(10, 1, 1), new TimeSpan(12, 2, 3));
        }
コード例 #2
0
 public void Next()
 {
     Utilities.Random.DefaultClasses.TimeSpanGenerator Generator = new Utilities.Random.DefaultClasses.TimeSpanGenerator();
     Assert.InRange(Generator.Next(new System.Random()), TimeSpan.MinValue, TimeSpan.MaxValue);
     Assert.InRange(Generator.Next(new System.Random(), new TimeSpan(10, 1, 1), new TimeSpan(12, 2, 3)), new TimeSpan(10, 1, 1), new TimeSpan(12, 2, 3));
 }