示例#1
0
        public void AttributeTagAsDicomElement_Array_GetDefaultValue()
        {
            var          expected = DicomTag.ALinePixelSpacing;
            DicomElement element  = new DicomAttributeTag(DicomTag.DimensionIndexPointer, DicomTag.ALinePixelSpacing);
            var          actual   = element.Get <DicomTag>();

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void DicomAttributeTagTest()
        {
            var          expected = new DicomTag[] { DicomTag.ALinePixelSpacing }; //single value
            DicomElement element  = new DicomAttributeTag(DicomTag.DimensionIndexPointer, expected);


            TestAddElementToDatasetAsString <string>(element, expected.Select(n => n.ToString("J", null)).ToArray());

            expected = new DicomTag[] { DicomTag.ALinePixelSpacing, DicomTag.AccessionNumber }; //multi-value
            element  = new DicomAttributeTag(DicomTag.FrameIncrementPointer, expected);

            TestAddElementToDatasetAsString(element, expected.Select(n => n.ToString("J", null)).ToArray());
        }