private void _assert(Type wrapperType) { AAlignmentEntity entity = AlignmentEntityWrapperFactory.CreateWrapper(m_RequestedEntityType); Assert.AreEqual(wrapperType, entity.GetType(), "Incorrect entity type created."); }
public void WrapEntityCorrectly() { Document testDoc = getTestDocument(); using (Transaction tr = testDoc.StartTransaction()) { AlignmentEntity entity = getTestEntity(testDoc); AAlignmentEntity wrapper = AlignmentEntityWrapperFactory.WrapEntity(entity); Assert.IsTrue(wrapper.IsValid, "Entity not wrapped correctly."); } }