本文整理汇总了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);
}