public void testCreateCustomEntry() { CustomEntry customEntry = unisens1.createCustomEntry("customEntry.txt"); Assert.IsNotNull(unisens1.getEntry("customEntry.txt")); Assert.AreEqual("customEntry.txt", customEntry.getId()); Assert.IsNotNull(customEntry.getUnisens()); unisens1.deleteEntry(customEntry); Assert.IsNull(unisens1.getEntry("customEntry.txt")); }
public void testClone() { CustomEntry clonedEntry = (CustomEntry)customEntry.clone <CustomEntry>(); Assert.AreEqual(customEntry.getId(), clonedEntry.getId()); Assert.AreEqual(customEntry.getComment(), clonedEntry.getComment()); Assert.AreEqual(customEntry.getContentClass(), clonedEntry.getContentClass()); Assert.AreEqual(customEntry.getSource(), clonedEntry.getSource()); Assert.AreEqual(customEntry.getSourceId(), clonedEntry.getSourceId()); Assert.AreEqual(customEntry.getFileFormat().getFileFormatName(), clonedEntry.getFileFormat().getFileFormatName()); assertDictionaryEquals(customEntry.getAttributes(), clonedEntry.getAttributes()); }