本文整理匯總了C#中AttributeValue.getValue方法的典型用法代碼示例。如果您正苦於以下問題:C# AttributeValue.getValue方法的具體用法?C# AttributeValue.getValue怎麽用?C# AttributeValue.getValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AttributeValue
的用法示例。
在下文中一共展示了AttributeValue.getValue方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: assertDateValue
private void assertDateValue(AttributeValue attr, string value)
{
Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(DateValue));
DateValue actual = (DateValue)pob.getSimpleValue();
DvDate expected = new DvDate(value);
Assert.AreEqual(actual.getValue(), expected);
}
示例2: assertCharacterValue
private void assertCharacterValue(AttributeValue attr, char value)
{
Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(CharacterValue));
CharacterValue actual = (CharacterValue)pob.getSimpleValue();
Character expected = new Character(value);
Assert.AreEqual(actual.getValue(), expected);
}
示例3: assertBooleanValue
private void assertBooleanValue(AttributeValue attr, bool value)
{
Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(BooleanValue));
BooleanValue actual = (BooleanValue)pob.getSimpleValue();
java.lang.Boolean expected = new java.lang.Boolean(value);
Assert.AreEqual(actual.getValue(), expected);
}
示例4: assertStringValue
private void assertStringValue(AttributeValue attr, string value)
{
Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(StringValue));
StringValue str = (StringValue)pob.getSimpleValue();
Assert.AreEqual(str.getValue(), value);
}
示例5: assertRealValue
private void assertRealValue(AttributeValue attr, double value)
{
Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(RealValue));
RealValue actual = (RealValue)pob.getSimpleValue();
java.lang.Double expected = new java.lang.Double(value);
Assert.AreEqual(actual.getValue(), expected);
}