public void It_should_remove_attribute_from_class_info() { Assert.That(_classInfo.Attributes.Count, Is.EqualTo(1)); var attributeInfo = _classInfo.GetAttributeInfoFromName(_fieldName); Assert.That(attributeInfo, Is.Null); }
public void It_should_update_class_info_with_new_attribute_name() { Assert.That(_classInfo.Attributes.Count, Is.EqualTo(2)); var attributeInfo = _classInfo.GetAttributeInfoFromName(_fieldName); Assert.That(attributeInfo, Is.Not.Null); Assert.That(attributeInfo.GetName(), Is.EqualTo(_fieldName)); }
public void It_should_extend_class_info_with_new_attribute_info() { Assert.That(_classInfo.Attributes.Count, Is.EqualTo(3)); var attributeInfo = _classInfo.GetAttributeInfoFromName(_fieldName); Assert.That(attributeInfo, Is.Not.Null); Assert.That(attributeInfo.GetName(), Is.EqualTo(_fieldName)); Assert.That(attributeInfo.GetAttributeType(), Is.EqualTo(OdbType.GetFromClass(_fieldType))); }