示例#1
0
            public void TestConstructors()
            {
                try
                {
                    DicomAttributeIS attrib = new DicomAttributeIS(DicomTagDictionary.GetDicomTag(DicomTags.AccessionNumber));
                    Assert.Fail("Above statement should throw exception");
                }
                catch (DicomException)
                {

                }

            }
示例#2
0
 public DicomAttributeIS CreateAttribute()
 {
     DicomAttributeIS attrib = new DicomAttributeIS(DicomTagDictionary.GetDicomTag(DicomTags.WedgeNumber));
     Assert.AreEqual(0, attrib.Count);
     Assert.AreEqual(0, attrib.StreamLength);
     return attrib;
 }