public void BookToStringFormatExceptionTests(string format) { var book = new Book.Logic.Book("978-0-7356-6745-7", "Jeffrey Richter", "CLR via C#", "Microsoft Press", 2012, 826, 59.99m); Assert.Throws <FormatException>(() => book.ToString(format)); }
public string BookToStringTests(string format) { var book = new Book.Logic.Book("978-0-7356-6745-7", "Jeffrey Richter", "CLR via C#", "Microsoft Press", 2012, 826, 59.99m); return(book.ToString(format)); }