Beispiel #1
0
            // SetString()
            //      1.     
            public DicomAttributeAE CreateAttribute()
            {
                DicomAttributeAE attr= new DicomAttributeAE(DicomTagDictionary.GetDicomTag(DicomTags.RetrieveAeTitle));
                Assert.AreEqual(0, attr.Count);
                Assert.AreEqual(0, attr.StreamLength);

                return attr;
            }
 public void TestConstructors()
 {
     DicomAttributeAE attrib;
     try
     {
         attrib= new DicomAttributeAE(DicomTagDictionary.GetDicomTag(DicomTags.AccessionNumber));
         Assert.Fail("Above statement should throw exception");
     }
     catch (DicomException)
     {
        
     }
    
     attrib = new DicomAttributeAE(DicomTagDictionary.GetDicomTag(DicomTags.RetrieveAeTitle));
     
 }