public void BookServiceDeleteBoundaryTest() //BookService边界测试 { BookService service = BookService.getInstance(); BookListItem book = new BookListItem(); //边界测试需要的数据 bool ret2 = service.delete(book, ""); //边界测试3,删除,username为空 Assert.IsTrue(ret2 == false); }
private void DeleteBookListItem(BookListItem book) { bookService.delete(book, phoneAppServeice.State["username"].ToString()); }