Advertisement
Guest User

serializacjatest

a guest
May 24th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1.         public void TestMethod1()
  2.         {
  3.             Book book = new Book("Lalka", "Boleslaw Prus", 2002);
  4.             Book book2 = new Book("Potop", "Henryk Sienkiewicz", 2012);
  5.             List<Book> books = new List<Book>();
  6.             books.Add(book);
  7.             books.Add(book2);
  8.             TestMethods.toXML(books);
  9.             List<Book> books2 = new List<Book>();
  10.             books2 = TestMethods.fromXML();
  11.             Assert.AreEqual(books.ToString(), books2.ToString());
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement