Esempio n. 1
0
        private void assertTimeValue(AttributeValue attr, string value)
        {
            Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
            PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();

            Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(TimeValue));
            TimeValue actual   = (TimeValue)pob.getSimpleValue();
            DvTime    expected = new DvTime(value);

            Assert.AreEqual(actual.getValue(), expected);
        }
 private void assertTimeValue(AttributeValue attr, string value)
 {
     Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock));
     PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue();
     Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(TimeValue));
     TimeValue actual = (TimeValue)pob.getSimpleValue();
     DvTime expected = new DvTime(value);
     Assert.AreEqual(actual.getValue(), expected);
 }