Example #1
0
        public void CheckAddEdit_NotValidData_FalseReturned(string t, int cat, string c, string d, string q)
        {
            string title       = t;
            int    category    = cat;
            string cost        = c;
            string discription = d;
            string quantity    = q;

            CorrectInputCheck inputCheck = GetInputCheck();
            bool actual = inputCheck.CheckAddEdit(title, category, cost, discription, quantity);

            Assert.IsFalse(actual);
        }
Example #2
0
        public void CheckAddEdit_ValidData_TrueReturned()
        {
            string title       = "RPG";
            int    category    = 2;
            string cost        = "150";
            string discription = "Just Test";
            string quantity    = "10";

            CorrectInputCheck inputCheck = GetInputCheck();
            bool actual = inputCheck.CheckAddEdit(title, category, cost, discription, quantity);

            Assert.IsTrue(actual);
        }