Ejemplo n.º 1
0
        public void ValidMethodOK()
        {
            clsBook ABook    = new clsBook();
            string  ErrorMsg = "";

            ErrorMsg = ABook.Valid(Title, DatePublished, Stock, Price, AvailableOnline);
        }
Ejemplo n.º 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, "");
        }
Ejemplo n.º 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, "");
        }