コード例 #1
0
        public void When_Random_Number_Generated_Has_Type_Matched()
        {
            int number = 12;

            List <PinModel> model = new List <PinModel>();

            IRandomPinGenerator randomobj = new RandomPinGenerator();

            model = randomobj.Get(number);

            Assert.IsInstanceOf(typeof(IEnumerable <PinModel>), model, "Model type does not match");
        }
コード例 #2
0
        public void When_Random_Number_Generated_By_Get_Func()
        {
            int number = 12;

            List <PinModel> model = new List <PinModel>();

            IRandomPinGenerator randomobj = new RandomPinGenerator();

            model = randomobj.Get(number);

            Assert.AreEqual(number, model.Count, "Err: Function return value does not macth with provided input value. ");
        }