private void assertDateTimeValue(AttributeValue attr, string value) { Assert.IsInstanceOfType(attr.getValue(), typeof(PrimitiveObjectBlock)); PrimitiveObjectBlock pob = (PrimitiveObjectBlock)attr.getValue(); Assert.IsInstanceOfType(pob.getSimpleValue(), typeof(DateTimeValue)); DateTimeValue actual = (DateTimeValue)pob.getSimpleValue(); DvDateTime expected = new DvDateTime(value.ToString()); Assert.AreEqual(actual.getValue(), expected); }