예제 #1
0
        public void DicomOtherDouble_Value_ReturnsObjectNumber()
        {
            var element = new DicomOtherDouble(DicomTag.DoubleFloatPixelData, 12.345);
            var actual  = element.Get <object>();

            Assert.Equal(12.345, actual);
        }
예제 #2
0
        public void DicomOtherDouble_ByteBuffer_ReturnsValidNumber()
        {
            var element = new DicomOtherDouble(DicomTag.DoubleFloatPixelData, new MemoryByteBuffer(new byte[] { 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80 }));
            var actual  = element.Get <double>();

            Assert.InRange(actual, double.MinValue, double.MaxValue);
        }
예제 #3
0
        public void DicomOtherDoubleTest()
        {
            var testValues = new double[] { 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80 };

            var element = new DicomOtherDouble(DicomTag.DoubleFloatPixelData, testValues);

            TestAddElementToDatasetAsByteBuffer(element, testValues);
        }