示例#1
0
        public void  testRandomInRange()
        {
            int count = max;

            range.setRandom(true);
            //UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
            foreach (long l in range)
            {
                Assert.IsTrue(l <= range.Max, l + " should be <= " + range.Max);
                Assert.IsTrue(l >= range.Min, l + " should be >= " + range.Min);
                if (--count == 0)
                {
                    break;
                }
            }
        }