Exemple #1
0
        public void CreateAuthorWithName()
        {
            var author = new Author(1, "Dave");
            var newBook = new Book("The Book");

            newBook.Author = author;

            Assert.AreEqual(newBook.Author, author);
        }
Exemple #2
0
 public void CreateAuthorWithName()
 {
     var blarg = new Author(1, "Dave");
     Assert.IsInstanceOfType(blarg, typeof(Author));
     Assert.AreEqual(blarg.Name, "Dave");
 }
Exemple #3
0
 public void CreateAuthor()
 {
     var blarg = new Author(1);
     Assert.IsInstanceOfType(blarg, typeof(Author));
     Assert.AreEqual(blarg.ID, 1);
 }