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

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