Esempio n. 1
0
            public void TestConstructors()
            {
                try
                {
                    DicomAttributeUL attrib = new DicomAttributeUL(DicomTagDictionary.GetDicomTag(DicomTags.AccessionNumber));
                    Assert.Fail("Above statement should have failed (different VR)");
                }
                catch (DicomException e)
                {
                }

                CreateAttribute();
            }
Esempio n. 2
0
 public DicomAttributeUL CreateAttribute()
 {
     DicomAttributeUL attrib = new DicomAttributeUL(DicomTagDictionary.GetDicomTag(DicomTags.SelectorUlValue));
     Assert.AreEqual(0, attrib.Count);
     Assert.AreEqual(0, attrib.StreamLength);
     return attrib;
 }