public void CreateAuthorWithName() { var author = new Author(1, "Dave"); var newBook = new Book("The Book"); newBook.Author = author; Assert.AreEqual(newBook.Author, author); }
public void CreateBook() { var newBook = new Book("The Book"); Assert.IsInstanceOfType(newBook, typeof (Book)); Assert.AreEqual(newBook.Title, "The Book"); }