public static void CollationName_PropertyGet_MatchesCtorArgument() { const string collationValue = "test"; var collectionAttr = new CollationAttribute(collationValue, typeof(FakeDialect)); var expected = new Identifier(collationValue); Assert.That(collectionAttr.CollationName, Is.EqualTo(expected)); }
/** * Universal attribute getter * @param coll collator which attributes are to be changed * @param attr attribute type * @return attribute value * @param status to indicate whether the operation went on smoothly or there were errors * @see UColAttribute * @see UColAttributeValue * @see ucol_setAttribute * @stable ICU 2.0 */ public static CollationAttributeValue ucol_getAttribute( RuleBasedCollator.SafeRuleBasedCollatorHandle collator, CollationAttribute attr, out ErrorCode status) { status = ErrorCode.NoErrors; if (CollatorMethods.ucol_getAttribute == null) { CollatorMethods.ucol_getAttribute = GetMethod <CollatorMethodsContainer.ucol_getAttributeDelegate>(IcuI18NLibHandle, "ucol_getAttribute"); } return(CollatorMethods.ucol_getAttribute(collator, attr, out status)); }
private bool Equals(CollationAttribute other) { return base.Equals(other) && string.Equals(_collationName, other._collationName); }
private bool Equals(CollationAttribute other) { return(base.Equals(other) && string.Equals(_collationName, other._collationName)); }
private void _SetAttribute(CollationAttribute attr, CollationAttributeValue value) { ErrorCode e; NativeMethods.ucol_setAttribute(_handle, attr, value, out e); e.ThrowIfError(); }
private CollationAttributeValue _GetAttribute(CollationAttribute attr) { ErrorCode e; var value = NativeMethods.ucol_getAttribute(_handle, attr, out e); e.ThrowIfError(); return value; }