Пример #1
0
        public void ConvertGuidToUuidInteger_RoundTripConversionEmpty()
        {
            var    expected  = new Guid();
            string converted = DicomUIDGenerator.ConvertGuidToUuidInteger(ref expected);
            var    actual    = ConvertDicomUidToGuid(converted);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void ConvertGuidToUuidInteger_Iso9834Sample()
        {
            // Sample value of ISO/IEC 9834-8, paragraph 8 and wiki.ihe.net
            var    sampleValue = new Guid("f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
            string actual      = DicomUIDGenerator.ConvertGuidToUuidInteger(ref sampleValue);

            Assert.Equal("2.25.329800735698586629295641978511506172918", actual);
        }
Пример #3
0
        public void ConvertGuidToUuidInteger_RoundTripConversion()
        {
            var    expected  = new Guid("11223344-5566-7788-9900-aabbccddeeff");
            string converted = DicomUIDGenerator.ConvertGuidToUuidInteger(ref expected);
            var    actual    = ConvertDicomUidToGuid(converted);

            Assert.Equal(expected, actual);
        }