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