Example #1
0
        public void ValidMethodOK()
        {
            clsBook ABook    = new clsBook();
            string  ErrorMsg = "";

            ErrorMsg = ABook.Valid(Title, DatePublished, Stock, Price, AvailableOnline);
        }
Example #2
0
        public void BookIDMid()
        {
            clsBook ABook    = new clsBook();
            string  ErrorMsg = "";
            int     BookID   = 1073741823;

            ErrorMsg = ABook.Valid(Title, DatePublished, Stock, Price, AvailableOnline);
            Assert.AreEqual(ErrorMsg, "");
        }
Example #3
0
        public void BookIDMaxMinusOne()
        {
            clsBook ABook    = new clsBook();
            string  ErrorMsg = "";
            int     BookID   = 2147483646;

            ErrorMsg = ABook.Valid(Title, DatePublished, Stock, Price, AvailableOnline);
            Assert.AreEqual(ErrorMsg, "");
        }