Ejemplo n.º 1
0
        public void RandomMinMaxTest()
        {
            int iMinValue = 0; // TODO: 初始化为适当的值
            int iMaxValue = 0; // TODO: 初始化为适当的值
            int expected  = 0; // TODO: 初始化为适当的值
            int actual;

            actual = RandomEx.RandomMinMax(iMinValue, iMaxValue);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ulong RandomGoldGenerator()
        {
            if (m_MinGold < 0)
            {
                m_MinGold = 0;
            }

            if (m_MaxGold < 0)
            {
                m_MaxGold = 0;
            }

            return((ulong)RandomEx.RandomMinMax((int)m_MinGold, (int)m_MaxGold) * s_GoldMultiplier);
        }