Exemple #1
0
 static void AssertTextItem (TextItem textItem, TextItemOptions options)
 {
     AssertItem (textItem, options);
     Assert.AreEqual (textItem.Protection, options.Protection);
     Assert.AreEqual (textItem.LongDescription, options.LongDescription);
     Assert.AreEqual (textItem.Description, options.Description);
     Assert.AreEqual (textItem.Rating, options.Rating);
     Assert.AreEqual (textItem.Date, options.Date);
     Assert.AreEqual (textItem.Language, options.Language);
     Assert.IsTrue (textItem.Authors.IsReadOnly);
     Assert.IsTrue (textItem.Publishers.IsReadOnly);
     Assert.IsTrue (textItem.Contributors.IsReadOnly);
     Assert.IsTrue (textItem.Relations.IsReadOnly);
     Assert.IsTrue (textItem.Rights.IsReadOnly);
     CollectionAssert.AreEqual (textItem.Authors, options.Authors);
     CollectionAssert.AreEqual (textItem.Publishers, options.Publishers);
     CollectionAssert.AreEqual (textItem.Contributors, options.Contributors);
     CollectionAssert.AreEqual (textItem.Relations, options.Relations);
     CollectionAssert.AreEqual (textItem.Rights, options.Rights);
 }
Exemple #2
0
 public void TextItemInstantiation ()
 {
     var options = new TextItemOptions ();
     SetTextItemOptions (options);
     var text_item = new TextItem ("-1", "-1", options);
     AssertTextItem (text_item, options);
     AssertTextItem (text_item, text_item.GetOptions ());
 }