Exemplo 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);
        }
Exemplo 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[]>());
        }
Exemplo n.º 3
0
        public void DicomSignedShortAsDicomElement_Array_GetDefaultValue()
        {
            DicomElement element = new DicomSignedShort(DicomTag.SynchronizationChannel, 5, 8);

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