コード例 #1
0
        public void TestRandomInt()
        {
            int random = RandomNumbersTool.RandomInt();

            Assert.IsTrue(random == 0 || random == 1);
        }
コード例 #2
0
        public void TestRandomInt_int_int()
        {
            int random = RandomNumbersTool.RandomInt(0, 5);

            Assert.IsTrue(random == 0 || random == 1 || random == 2 || random == 3 || random == 4 || random == 5);
        }