Esempio n. 1
0
        public void DicomValueElement_GetEnum_ReturnsEnum()
        {
            const MockEnum expected = MockEnum.One;
            var            element  = new DicomSignedShort(DicomTag.ALinesPerFrame, (short)expected);
            var            actual   = element.Get <MockEnum>();

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void DicomSignedShortAsDicomElement_Array_GetObjectArrayValue()
        {
            DicomElement element = new DicomSignedShort(DicomTag.SynchronizationChannel, 5, 8);

            Assert.Equal(new object[] { (short)5, (short)8 }, element.Get <object[]>());
        }
Esempio n. 3
0
        public void DicomSignedShortAsDicomElement_Array_GetDefaultValue()
        {
            DicomElement element = new DicomSignedShort(DicomTag.SynchronizationChannel, 5, 8);

            Assert.Equal((short)5, element.Get <short>());
        }