コード例 #1
0
        public void TestGetNumber()
        {
            //Arrange
            int number        = 100;
            int expected_min  = 0;
            int exprected_max = 100;

            //Act
            int result = RandomUtility.GetNumber(number);

            //Assert
            Trace.WriteLine("產生結果:" + result);
            Assert.IsTrue(expected_min <= result && exprected_max >= result);
        }