Exemple #1
0
        public void GeneralRandomizerInt()
        {
            List <int> intList = new List <int>()
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 0
            };
            int randomInt = FakerData.GeneralRandomizer(intList);

            Assert.IsTrue(intList.Contains(randomInt));
        }
Exemple #2
0
        public void GeneralRandomizerString()
        {
            List <string> stringList = new List <string>()
            {
                "a", "b", "c", "d", "e", "f", "g", "h", "i", "j"
            };
            string randomString = FakerData.GeneralRandomizer(stringList);

            Assert.IsTrue(stringList.Contains(randomString));
        }
Exemple #3
0
        public void GeneralRandomizerInt()
        {
            List <int> intList = new List <int>()
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 0
            };

#pragma warning disable CS0618 // Type or member is obsolete
            int randomInt = FakerData.GeneralRandomizer(intList);
#pragma warning restore CS0618 // Type or member is obsolete
            Assert.IsTrue(intList.Contains(randomInt));
        }
Exemple #4
0
        public void GeneralRandomizerString()
        {
            List <string> stringList = new List <string>()
            {
                "a", "b", "c", "d", "e", "f", "g", "h", "i", "j"
            };

#pragma warning disable CS0618 // Type or member is obsolete
            string randomString = FakerData.GeneralRandomizer(stringList);
#pragma warning restore CS0618 // Type or member is obsolete
            Assert.IsTrue(stringList.Contains(randomString));
        }