public void TestMethod_GenerateGreatRndNumberUsingCrypto_verify_all_numbers_are_generated()
        {
            int result  = CryptoFunc.GenerateGreatRndNumberUsingCrypto(1, 255);
            var dico    = new Dictionary <int, int>();
            var dicoRef = new Dictionary <int, bool>();

            for (int i = 1; i < 255; i++)
            {
                dicoRef.Add(i, false);
            }

            for (int i = 1; i < 1000; i++)
            {
                result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(1, 254);
                if (dico.ContainsKey(result))
                {
                    dico[result]++;
                }
                else
                {
                    dico.Add(result, 1);
                }

                dicoRef[result] = true;
            }

            Assert.IsTrue(dicoRef.ContainsValue(true));
            //Assert.IsTrue(HaveAllValues(dico)); //bug
        }
        public void TestMethod_GenerateGreatRndNumberUsingCrypto_has_255_at_least_once()
        {
            int result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(1, 255);

            for (int i = 2; i < 100; i++)
            {
                result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(1, i);
                if (result == 255)
                {
                    Assert.IsTrue(result == 255);
                }
            }
        }
        public void TestMethod_GenerateGreatRndNumberUsingCrypto_min_equal_max()
        {
            int result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(10, 10);

            Assert.IsTrue(result == 10);
        }
        public void TestMethod_GenerateGreatRndNumberUsingCrypto_has_255()
        {
            int result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(255, 255);

            Assert.IsTrue(result == 255);
        }
        public void TestMethod_GenerateGreatRndNumberUsingCrypto_greater_than_1()
        {
            int result = CryptoFunc.GenerateGreatRndNumberUsingCrypto(1, 254);

            Assert.IsTrue(result >= 1);
        }