public void DicomOtherDouble_Value_ReturnsObjectNumber() { var element = new DicomOtherDouble(DicomTag.DoubleFloatPixelData, 12.345); var actual = element.Get <object>(); Assert.Equal(12.345, actual); }
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); }
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); }