Esempio n. 1
0
 public FakeDocument()
 {
     id = "0";
     title = "Sans titre";
     author = new FakeAuthor();
     copyright = false;
 }
Esempio n. 2
0
        public void TestConstructor()
        {
            FakeAuthor fAuthor = new FakeAuthor();
            Document doc = new Document("42","TitleTest",fAuthor,false);

            Assert.AreEqual("42", doc.ID, "Creation document : id incorrect.");
            Assert.AreEqual("TitleTest", doc.Title, "Creation document : titre incorrect.");
            Assert.AreEqual("false", doc.Copyright, "Creation document : copyright incorrect.");
        }