Exemplo n.º 1
0
        public void DicomCodeString_StringContainingNull_NullIsIgnored()
        {
            const MockEnum expected = MockEnum.Two;
            var            element  = new DicomCodeString(DicomTag.AITDeviceType, "Two\0");
            var            actual   = element.Get <MockEnum>();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void DicomCodeString_StringEndsWithSpace_SpaceIsIgnored()
        {
            const MockEnum expected = MockEnum.One;
            var            element  = new DicomCodeString(DicomTag.AITDeviceType, "One ");
            var            actual   = element.Get <MockEnum>();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 3
0
        public void DicomCodeString_HasData_GetEnumReturnsDefinedEnum()
        {
            const MockEnum expected = MockEnum.Zero;
            var            element  = new DicomCodeString(DicomTag.AcquisitionStatus, expected.ToString());
            var            actual   = element.Get <MockEnum>();

            Assert.Equal(expected, actual);
        }