public void Test_GetRandomShortTwice_ShouldReturnDiffValue()
        {
            //---------------Set up test pack-------------------
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var randomShort1 = RandomValueGen.GetRandomShort();
            var randomShort2 = RandomValueGen.GetRandomShort();

            //---------------Test Result -----------------------
            Assert.AreNotEqual(randomShort1, randomShort2);
        }
        public void Test_GetRandomShort_WithNoMaxAndMin_ShouldReturnRandomShort()
        {
            //---------------Set up test pack-------------------
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var randomInt = RandomValueGen.GetRandomShort();

            //---------------Test Result -----------------------
            Assert.GreaterOrEqual(randomInt, GetMin <short>(), "Should return value greater than min");
            Assert.LessOrEqual(randomInt, GetMax <short>(), "Should return value less than min");
        }
        public void Test_GetRandomShort_WithMaxAndMinAsMaxAndMin_ShouldReturnRandomShort()
        {
            //---------------Set up test pack-------------------
            var min = GetMin <short>();
            var max = GetMax <short>();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var randomShort = RandomValueGen.GetRandomShort(min, max);

            //---------------Test Result -----------------------
            Assert.GreaterOrEqual(randomShort, min, "Should be greater than min");
            Assert.LessOrEqual(randomShort, max, "should be less than max");
        }
        public void Test_GetRandomShort_WithMaxLTMin_ShouldReturnMin()
        {
            //---------------Set up test pack-------------------
            var min = Convert.ToInt16(GetMax <short>() - 100);
            var max = Convert.ToInt16(GetMax <short>() - 500);

            //---------------Assert Precondition----------------
            Assert.Less(max, min);
            //---------------Execute Test ----------------------
            var randomShort = RandomValueGen.GetRandomShort(min, max);

            //---------------Test Result -----------------------
            Assert.AreEqual(randomShort, min);
        }